How do I limit the width of an asp:DropDownList to the size of it's container, in this case a DIV; but allow it to be smaller so there isn't a lot of white space if the list items are smaller? Seems like what I want is a MaxWidth attribute, but I don't see anything like that. Gary
There is a CSS property that does that, but unfortunately a large number of browsers do not yet support it, so I would not suggest using it. My suggestion would be to just use a fixed width until more browsers do support it. Yeah, I know that's not what you want, but sometimes we have to make a few sacrifices. -- Nathan Sokalski njsokalski@hotmail.com http://www.nathansokalski.com/ "Gary Wardell" wrote in message news:eidZVJlzIHA.2384@TK2MSFTNGP04.phx.gbl... > How do I limit the width of an asp:DropDownList to the size of it's > container, in this case a DIV; but allow it to be smaller so there isn't a > lot of white space if the list items are smaller? > > Seems like what I want is a MaxWidth attribute, but I don't see anything > like that. > > Gary > >