Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Styling the Ajax ComboBox

Styling the Ajax ComboBox

Scheduled Pinned Locked Moved ASP.NET
cssdesignsysadminquestion
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    paper67
    wrote on last edited by
    #1

    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

    A 1 Reply Last reply
    0
    • P paper67

      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

      A Offline
      A Offline
      Arindam Tewary
      wrote on last edited by
      #2

      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

      P 1 Reply Last reply
      0
      • A Arindam 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

        P Offline
        P Offline
        paper67
        wrote on last edited by
        #3

        It is properly linked. I have other styles defined in the CSS file that work properly.

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups