Property name of list css style for background-color on hover

0 favourites
  • 9 posts
From the Asset Store
Creepy Sprite Font suitable font for your Dark/Horror/Halloween games.
  • Hi,

    Wich is the property name of the background-color on hover in a dropdown list (list plugin)? The standard color is blue, but I want to change it. I successfully changed font, color, ... with 'Set CSS style' so I know how to do this. Finding property names of common properties is no problem, but I can't find the property name of the background anywhere because it's not a standard property.

    Screenshot (I want to change the blue):

    i.imgur.com/lwXPRTs.png

    Screenshot of my code to change the style of the list:

    i.imgur.com/9Yim8Ne.png

    Thanks!

    Wim

    Tagged:

  • maybe it's helpful

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Thank you for your reaction, but I can't find out wich of these property names would change the color 'on hover'. I already use all the other properties.

  • Use a style sheet and add:

    .classnameOfObject:hover{

    background-color: black;

    }

    Or

    #IdOfObject:hover{

    background-color: black;

    }

    Or, if you have the mouse component you can event it with:

    On hover object

    Set style (like mentioned earlier)

  • Thank you lennaert, but it doesn't work as expected.

    The background-color of the complete dropdown changes, not the background color of the item I'm pointing at, that is still blue.

    So still looking for the correct property.

    Wim

  • Ohh, i totally forgot that chrome doesn't allow it.

    Firefox can do it, safari too...

    But chrome is limited the the OS highlight color.

    For chrome your stuck with blue.

    Apologies

  • No problem :-),

    I tried it in Firefox but there are other styling problems.

    I think I have to live with the blue hover color.

    Thank you for your time!

    Wim

  • No probs

    There are other options though

    You could create your own drop down thing/mechanic, like, spawn a few texts with a loop below another text, mimicking the dropwdown behaviour.

    With that you have control of every part created, even add images, audio, video, animated objects etc etc instead of texts.

    Good luck

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)