dcsimg
www.webdeveloper.com
Results 1 to 2 of 2

Thread: pseudo class question

Hybrid View

  1. #1
    Join Date
    Nov 2006
    Posts
    198

    pseudo class question

    Hi folks, I'm having a bit of trouble setting up pseudo classes for my a element...this works in FF but not IE. I'm sure it's a simple remedy...here's the code. I've tried variations (.left:hover, etc.) but can't get it to work in IE...the background image simply dissappears.

    a.left:hover {
    background:url(images/colorleft.gif);
    color:white;
    text-decoration:none;
    }

    <div id="navy">
    <a class="left" href="work.html">Wos</a>
    <a class="right"href="life.html">Life</a>
    <a class="bottom" href="home.html">Home</a>
    </div>

  2. #2
    Join Date
    Nov 2002
    Posts
    4,473
    Here is a comment from the Microsoft site on pseudo styles:
    Note The order of pseudo-classes is important. For example, the style rule for :hover must occur after any :link rule or any :visited rule to prevent the pseudo-classes from hiding each other.
    Could this be the problem?

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles