Change the position of blue highlight on select box dropdown - css

I was trying to change the highlight/focus (not sure which it actually refers) background position color when user moves the mouse over the select drop-down list. The blue background box is coming a little below the text. I want to move its position a little bit. What type of css property it needs to add. Any idea?

give padding top to every list item of dropdown menu, a

Related

How to change background colour of vaadin 8 combobox's dropdown items?

I am working with vaadin 8, and I have a com.vaadin.ui.ComboBox called "contacts" which is filled with a number of string-items. Whenever I click into the combobox, the items are displayed as a dropdown after I hit the space bar. The background against which the dropdown is displayed is transparent, and I would like to dye it blue. The F12-tools seem to be of no avail to find out which class I have to style. So what can I do to change the background-color of the pane on which the dropdown items are displayed?
Use the class .gwt-MenuItem for the dropdown entries. See https://vaadin.com/docs/v8/framework/components/components-combobox/#components.combobox.css

code name one button shadow

I have one button with blue bg color and I want to add black shadow as shown in the image,
how can be done in codenameone ?
You can do many things.
The simplest is that when you cut the 9-piece border you can just include the shadow as part of the image: http://www.codenameone.com/how-do-i---create-a-9-piece-image-border.html
You can also use a LayeredLayout and place the button within then place a shadow button in the bottom layer.

Dropdown list arrow customstyle

Is it possible to customize the arrow background color of the dropdown using css/css3.
When the border color is default only black arrow seems to be visible.
on apply of border color arrow appears as shown in image
Not interested to open/close div accordingly. looking for some styling to achieve.
The real answer is no. The browsers do not let you change the appearance of those kind of elements, like checkboxes, radio buttons, dropdowns, etc.
However, there are jQuery plugins out there that let you fake it thinking what you see is an authentic dropdown, but in reality it's something else, like an unordered list with a container div that resizes and contracts when you click on it.

css tab selected background color

based off code in my prior question: CSS radius and hover fill entire area
how do i get the tab that is selected to have the same background color of the visible box below? the rest of the tabs i want to remain the default color. this way the user knows which tab is selected very easily.
i see the ui-state-default ui-corner-top ui-tabs-selected ui-state-active classes but can't get the css right to make it work.
help?
Do you want to highlight a tab on hover? I moved your background color into your class .ui-state-default and added a pseudo statement.
Here is a working Live Demo. Is this you want?

Removing default onclick or onItemClick color animation

When I click on some button or I click on the a element in grid or list view, a default orange color appears. I don't want that color to come when I click on it. Please tell me how can I do this.
And also is it possible to change the orange color by some other custom color when i click on button or items in grid or list view.
There is an example of how to set this here:
http://social.msdn.microsoft.com/Forums/en-US/wpf/thread/1c9e319c-79aa-4608-a302-0a6c9d93d504

Resources