Welcome to WebmasterWorld Guest from

Forum Moderators: ocean10000

Message Too Old, No Replies

Adding css with a .net drop down box - how to?

9:23 pm on Dec 7, 2005 (gmt 0)

Junior Member

10+ Year Member

joined:June 6, 2003
votes: 0

Does anyone have experince putting a style sheet on
a .net drop down?

<asp:dropdownlist id="ddlCustomerType" CssClass="drop" Runat="server" AutoPostBack="True">
<asp:ListItem Value="-1">Select Customer Type</asp:ListItem>
<asp:ListItem Value="Companies">Company</asp:ListItem>
<asp:ListItem Value="Individuals">Individual</asp:ListItem>

I can put a style on the overall drop down, but I would like to put something like <bold> on the header with in the box.



12:36 pm on Dec 22, 2005 (gmt 0)

Junior Member

10+ Year Member

joined:Apr 13, 2005
votes: 0

You can only apply one style to the list items...