Styling the Ajax ComboBox
-
Hi, I want to change the UI look of a ComboBox, so when I hover over a list item I want to change the backgroundcolor of the hovered item. Therefore I use the ListItemHoverCssClass property of the ComboBox as follows :
<asp:ComboBox ID="Combo1" runat="server" Width="80px" AutoPostBack="True"
ListItemHoverCssClass="ComboListItemHover">
<asp:ListItem Text="Item1" Selected="True" />
<asp:ListItem Text="Item2" />
<asp:ListItem Text="Item3" />
<asp:ListItem Text="Item4" />
</asp:ComboBox>In my CSS file, I do :
.ComboListItemHover { background-color: #F2D429; }
Why doesn't that work ? tia -
Hi, I want to change the UI look of a ComboBox, so when I hover over a list item I want to change the backgroundcolor of the hovered item. Therefore I use the ListItemHoverCssClass property of the ComboBox as follows :
<asp:ComboBox ID="Combo1" runat="server" Width="80px" AutoPostBack="True"
ListItemHoverCssClass="ComboListItemHover">
<asp:ListItem Text="Item1" Selected="True" />
<asp:ListItem Text="Item2" />
<asp:ListItem Text="Item3" />
<asp:ListItem Text="Item4" />
</asp:ComboBox>In my CSS file, I do :
.ComboListItemHover { background-color: #F2D429; }
Why doesn't that work ? tiaIt is good to check the basic things like whether CSS file has been "linked" and the link is given appropitely(path is proper or not). ;P .... !!! Couple of time I do forget to link the CSS ;)
Thanks, Arindam D Tewary
-
It is good to check the basic things like whether CSS file has been "linked" and the link is given appropitely(path is proper or not). ;P .... !!! Couple of time I do forget to link the CSS ;)
Thanks, Arindam D Tewary