N
N
nep2011-05-29 10:34:16
css
nep, 2011-05-29 10:34:16

How to make a div with rounded corners change color when hovering the mouse over it?

Maybe the question is obvious, but I'm new to layout.

The essence of the question on a live example: bimvet.ru
It is necessary that the menu items change color when hovering over the mouse. It seems that everything was done as it should, but there is a bug - a div with rounded corners is “not painted over” to the end.

You can choose a different rounding method. I took the first one I found on Habré.

Thanks in advance.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
V
Vlad Frolov, 2011-05-29
@nep

Replace:
A:hover.elmenu .grc be b, .grc be i, .grc be u {height: 1px !important; background: #ff0000;}
to:
A:hover.elmenu .grc be b, A:hover.elmenu .grc be i, A:hover.elmenu .grc be u {height: 1px !important; background: #ff0000;}

I
Ivan Trofimov, 2011-05-29
@cbone

If you are interested in other rounding methods, you can read about them and see here . Always use this example, 100% working in all browsers including IE6

Z
ZloiZmei, 2011-05-29
@ZloiZmei

Maybe just draw the buttons (background) for the menu? Active and inactive option.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question