Welcome to WebmasterWorld Guest from 18.206.168.65

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
posts:136
votes: 0


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

<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>
</asp:dropdownlist></td>

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.

Thanks,

B

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

Junior Member

10+ Year Member

joined:Apr 13, 2005
posts:128
votes: 0


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