RSS

how to fix width of asp DropDownList

16 Oct

 
<style type=”text/css”>
.myselect {
width:150px;
}
.myselect option {
width:auto;
}
</style>

 

<div>
<asp:DropDownList ID=”ddlTopics” runat=”server” AutoPostBack=”True” CssClass=”myselect”
>
</asp:DropDownList>
</div>

 

 

 

Advertisements
 
1 Comment

Posted by on October 16, 2012 in ASP Dot Net C#

 

Tags: ,

One response to “how to fix width of asp DropDownList

  1. Koray

    January 10, 2013 at 2:53 pm

    I have not been able to make this work…

     

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

 
%d bloggers like this: