Results 1 to 4 of 4

Thread: (HTML & CSS) Why wont my ":hover" work? **Resolved**

  1. #1

    Thread Starter
    Frenzied Member msimmons's Avatar
    Join Date
    Jul 2001
    Location
    Houston, TX
    Posts
    1,057

    (HTML & CSS) Why wont my ":hover" work? **Resolved**

    Here is what I have in the head section:
    Code:
    .bordercoloredi { font-family:times; font-size: 12pt; color:ffffff; border-bottom: none; border-right: none; }
    .bordercoloredi:hover { border-bottom: 1px outset #ffffff; border-right: 1px outset #ffffff; }
    and here is one of the elements I am trying to apply it to:
    Code:
    <a id="date_i" class="bordercoloredi" style="width:10px; cursor:hand;" onMousedown="document.getElementById('datetext').style.display = 'block';" onMouseup="document.getElementById('datetext').style.display = 'none';">i</a>
    (i know hand is not standard )

    thanks in advace
    Michael
    Last edited by msimmons; Nov 11th, 2002 at 10:46 AM.
    I'm off to GalahTech, hope to see you there.

    If you don't like the rules they make, refuse to play their game. -- Steve Ignorant.

  2. #2
    Frenzied Member Rick Bull's Avatar
    Join Date
    Apr 2002
    Location
    England
    Posts
    1,444
    You have no href with your anchor, and IE only works with hovers on anchors with hrefs. By the way you missed the # in the first class's colour.

  3. #3

    Thread Starter
    Frenzied Member msimmons's Avatar
    Join Date
    Jul 2001
    Location
    Houston, TX
    Posts
    1,057

    sorry i'm slow :)

    thanks!
    it was the href="#". They were spans and I just changed span to a and forgot to add the href
    I'm off to GalahTech, hope to see you there.

    If you don't like the rules they make, refuse to play their game. -- Steve Ignorant.

  4. #4
    Frenzied Member Rick Bull's Avatar
    Join Date
    Apr 2002
    Location
    England
    Posts
    1,444
    Heh I see. I think it should have worked regardless of the href missing, but IE has a lot of bugs with pseudo classes.

Posting Permissions

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



Click Here to Expand Forum to Full Width