How can I modify the style when hovering over a combo's option?

Lothar Mueller

This sounds so very simple:

hovering over the options of an Xpages comboBox they get some blue-ish background and white text color. Trying to alter this is driving me nuts. It obviously is NOT a simple css statement as in

select option:hover{background-color: green;}

as it would be for some standard html code (that's why I didn't tag this with css and the like...). But what is it then? Firebug or Chrome's developer tools didn't help me much, really, although I'm sure I'm missing something

Edit (after question was closed):
I'm aware that there are numerous questions regarding similar topics. But none of them is dealing with xsp combo boxes. The one question linked by some of youo gives an interesting solution by recommending a box-shadow instead of a background-color. This is nice but not quite what I'm looking for:

  • opening the combo the selected value still has the default background; only whil hovering the background appears to be changed
  • using this method I only can "cast" a shadow but cannot alter the text color which - depending on the shadow color - can be necessary to make the options legible

But I like Knut's answer as it seems to be pointing in the right direction; some alterations are needed though; if the question hadn't been closed I could post my solution as an own answer; but so I put it down as a comment to Knut's answer

Knut Herrmann

You can't change this style for xp:comboBox. But, if you use xe:djComboBox from ExtLib then you can change style with:

.tundra .dijitMenuItemSelected  {
    background-color: green;
}

enter image description here

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

How can I avoid CSS flickering when hovering over areas?

From Dev

How can I avoid CSS flickering when hovering over areas?

From Dev

When using custom cursors, how can you set the I-bar cursor when hovering over text?

From Dev

How can i make a custom made textbox appear when hovering over a button in wpf

From Dev

How can I get the blue glow when hovering over a text input field?

From Dev

In Labview how can I change the mouse pointer when hovering over one of my boolean controls?

From Dev

How can I change element while hovering over another?

From Dev

How can I see the value of a variable without hovering over it in VBA?

From Dev

How can I activate the window my mouse is currently hovering over?

From Dev

How do I remove the space when hovering over a nav link?

From Dev

How can I set my image's hover when hovering my text?

From Dev

How can I set my image's hover when hovering my text?

From Dev

Changing the style of one div when hovering over another

From Dev

In Java Swing, how can I have a Table CellEditor that's an editable JComboBox keep its value when I tab out of the combo box?

From Dev

How can I make text appear when hovering a picture that has already the hovering for transform?

From Dev

How can I get only the specific H3 I am hovering over to show and not all of them?

From Dev

How can I copy the hex color code of whatever pixel my mouse is hovering over?

From Dev

How can I modify a collection while also iterating over it?

From Dev

How to make text appear when hovering over an image that's inside an anchor tag and the anchor tag is inside a div?

From Dev

How do I remove the zoom icon that appears when hovering over image?

From Dev

How would I show text inside a span tag when hovering over a different element?

From Dev

How do I change the class of several tds when hovering over one of them?

From Dev

How do I show a sign up/log in field when hovering over it

From Dev

How do I trigger a click when hovering over a element for x seconds, using JQuery?

From Dev

How would I show text inside a span tag when hovering over a different element?

From Dev

How do I change the class of several tds when hovering over one of them?

From Dev

JavaFX: How do I track the information of a pixel over which the user's mouse is currently hovering inside an ImageView?

From Dev

How can I style a select option like a table?

From Dev

When hovering over <ul> I want another <ul> to show up

Related Related

  1. 1

    How can I avoid CSS flickering when hovering over areas?

  2. 2

    How can I avoid CSS flickering when hovering over areas?

  3. 3

    When using custom cursors, how can you set the I-bar cursor when hovering over text?

  4. 4

    How can i make a custom made textbox appear when hovering over a button in wpf

  5. 5

    How can I get the blue glow when hovering over a text input field?

  6. 6

    In Labview how can I change the mouse pointer when hovering over one of my boolean controls?

  7. 7

    How can I change element while hovering over another?

  8. 8

    How can I see the value of a variable without hovering over it in VBA?

  9. 9

    How can I activate the window my mouse is currently hovering over?

  10. 10

    How do I remove the space when hovering over a nav link?

  11. 11

    How can I set my image's hover when hovering my text?

  12. 12

    How can I set my image's hover when hovering my text?

  13. 13

    Changing the style of one div when hovering over another

  14. 14

    In Java Swing, how can I have a Table CellEditor that's an editable JComboBox keep its value when I tab out of the combo box?

  15. 15

    How can I make text appear when hovering a picture that has already the hovering for transform?

  16. 16

    How can I get only the specific H3 I am hovering over to show and not all of them?

  17. 17

    How can I copy the hex color code of whatever pixel my mouse is hovering over?

  18. 18

    How can I modify a collection while also iterating over it?

  19. 19

    How to make text appear when hovering over an image that's inside an anchor tag and the anchor tag is inside a div?

  20. 20

    How do I remove the zoom icon that appears when hovering over image?

  21. 21

    How would I show text inside a span tag when hovering over a different element?

  22. 22

    How do I change the class of several tds when hovering over one of them?

  23. 23

    How do I show a sign up/log in field when hovering over it

  24. 24

    How do I trigger a click when hovering over a element for x seconds, using JQuery?

  25. 25

    How would I show text inside a span tag when hovering over a different element?

  26. 26

    How do I change the class of several tds when hovering over one of them?

  27. 27

    JavaFX: How do I track the information of a pixel over which the user's mouse is currently hovering inside an ImageView?

  28. 28

    How can I style a select option like a table?

  29. 29

    When hovering over <ul> I want another <ul> to show up

HotTag

Archive