|
Rank: Newbie Groups: Member
Joined: 1/8/2013 Posts: 4
|
I can not seem to control the width of asp.net controls within customItems.
I am dynamically generating a treeview where each treenode is associated with a unique CustomItem. I am not having problems populating the nodes or node groups. Every treenode is associated with a unique customItem. Every customItem is populated with a couple of labels, a couple of small images and a couple of link buttons. All these controls have the correct text and images.
I have assigned css classes to each asp.net control and associated a css with the web page. With the associated css I can change colors and fonts but I can not change the margins of these controls, ie I can not vary the spacing between controls. In fact, I always get the same tight result even if I change the width property of the controls themselves.
I have colored the backgrounds of both the customItem control and the treeview to demonstrate that plenty of room exists.
Any idea why I can not control this aspect?
TIA
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,195
|
Hi,
I can't think of anything. Do you have the page online? If you have the page online we might be able to visit it from here and see what we can find.
Thanks!
|
|
Rank: Newbie Groups: Member
Joined: 1/8/2013 Posts: 4
|
Whoops! Seems asp.net or IE has to see units on lengths in css. I thought there was a default to px but seems there is not. Worked once I put px units in. Thanks again for the very quick replies: it really helps projects move.
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,195
|
No problem. Let us know if there is anything else.
|
|