Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
DotNet
acad.assignment.mngr
academic
adonet
aspnet
aspnet.announcements
aspnet.build.controls
aspnet.caching
aspnet.datagridcontrol
aspnet.mobile
aspnet.security
aspnet.webcontrols
aspnet.webservices
clr
compactframework
component_services
datatools
distributed_apps
drawing
faqs
framework
framework.wmi
general
internationalization
interop
languages.csharp
languages.jscript
languages.vb
languages.vb.controls
languages.vb.data
languages.vb.upgrade
languages.vc
languages.vc.libraries
myservices
odbcnet
performance
remoting
scripting
sdk
security
setup
vjsharp
vsa
webservi.enhancements
webservices
windowsforms
windowsforms.controls
winforms.databinding
winforms.designtime
xml
  
 
date: Sat, 14 Jun 2008 15:10:36 -0400,    group: microsoft.public.dotnet.framework.aspnet.webcontrols        back       


MaxWidth ??   
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
date: Sat, 14 Jun 2008 15:10:36 -0400   author:   Gary Wardell

Re: MaxWidth ??   
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
>
>
date: Sun, 15 Jun 2008 14:55:59 -0400   author:   Nathan Sokalski

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us