• Hello,
    I am using the NotesIL Theme. I add this line to my CSS file so that my sidebar entries change color when the mouse goes over them.

    div.sidebar li:hover > a,
    div.sidebar a:focus {
    background: #f9f9f9; /* Show a solid color for older browsers */
    background: -moz-linear-gradient(#BC0404, #BC0404);
    background: -o-linear-gradient(#BC0404, green);
    background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#BC0404), to(#BC0404)); /* Older webkit syntax */
    background: -webkit-linear-gradient(#BC0404, #BC0404);
    color: white;

    It works perfect, appart from one little problem I can’t solve. When the mouse is near the entry it look like I want it to be – red background and white text. But when the mouse is over the text, suddenly it disappears. I found changing the value of this parameter:

    div.sidebar ul li a:hover {
    	<ul>
    color: white</ul>
    
    ; }

    solves the issue with my sidebar, but then my links are not visible.
    http://i42.tinypic.com/20ztcw8.jpg
    http://i42.tinypic.com/vmysts.jpg
    http://i44.tinypic.com/2ewinph.jpg

Viewing 5 replies - 1 through 5 (of 5 total)
  • I would change
    div.sidebar li:hover > a
    to
    div.sidebar li > a:hover

    Thread Starter estario

    (@estario)

    This didn’t help.

    Post the link tho your website. This would help determine the problem.

    without a live link to your site, to illustrate the problem, nobody will be able to make any suggestions.

    please try to work with a tool such as Firefox’ add-on Firebug http://getfirebug.com/ to investigate the styles.

    helping with fundamental formatting issues is not part of this WordPress forum.

    Thread Starter estario

    (@estario)

    This is the live website address.
    I figured out how to fix the issue. I just changed

    div.sidebar li:hover > a,
    div.sidebar a:focus {

    to

    div.sidebar ul li:hover > a,
    div.sidebar a:focus

    I don’t understand how it works, but now my website is ok. Where can I find out more about this ul and this li tag in css. Google gives me a million of results.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Mouse Over Color Change Issue’ is closed to new replies.