MaxWidth ??

G

Gary Wardell

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
 
N

Nathan Sokalski

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,680
Members
48,796
Latest member
Greg L.

Latest Threads

Top