Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 8 of 8
  1. #1
    New to the CF scene
    Join Date
    Feb 2009
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    a hover intermittent in Firefox

    CSS code:
    a {
    text-decoration : none;
    }
    a:link {
    color : #900b09;
    background-color : transparent;
    font-weight : normal;
    font-size : 1em;
    }
    a:visited {
    color : #900b09;
    background-color : transparent;
    }
    a:hover {
    color : #4169e1;
    background-color : transparent;
    }
    a:active {
    color : #900b09;
    background-color : transparent;
    }

    a:hover does work in IE but in Firefox it does not work on links near the top of the page. Halfway down it works. Some pages it works top to bottom.
    On another website I have the a:hover in Firefox and works all the time, same CSS and XHTML coding.

    Thanks

    CSS and XHTML both validate with no errors.

  • #2
    Supreme Master coder! abduraooft's Avatar
    Join Date
    Mar 2007
    Location
    N/A
    Posts
    14,863
    Thanks
    160
    Thanked 2,224 Times in 2,211 Posts
    I can't see any such issue with the above CSS, when used with a simple link at my end. Could you post a link to your page?
    The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)

  • #3
    New to the CF scene
    Join Date
    Feb 2009
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts
    http://www.tg11association.org/index.shtml

    Link for Country Fire Authority does not show blue for hover.
    Money Savings page. First two links do not show blue.

    Thanks

  • #4
    New to the CF scene
    Join Date
    Feb 2009
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Have to go out for couple of hours. Will come back.
    Thanks
    Gilbert

  • #5
    Master Coder Excavator's Avatar
    Join Date
    Dec 2006
    Location
    Alaska
    Posts
    9,675
    Thanks
    22
    Thanked 1,827 Times in 1,811 Posts
    All blue for me, FF3 and IE7.
    IE8 no blue on any link.
    Validate often DURING development - Use it like a splelchecker | Debug during Development |Write it for FireFox, ignore IE
    Use the right DocType | Validate your markup | Validate your CSS | Why validating is good | Why tables are bad

  • #6
    Senior Coder
    Join Date
    Oct 2005
    Posts
    1,340
    Thanks
    0
    Thanked 61 Times in 60 Posts
    It works for me.

  • #7
    Supreme Master coder! abduraooft's Avatar
    Join Date
    Mar 2007
    Location
    N/A
    Posts
    14,863
    Thanks
    160
    Thanked 2,224 Times in 2,211 Posts
    Got it !
    You have
    Code:
    #foot a:link, .content a:visited, .content a:active {/*style.css (line 318)*/
    background-color:transparent;
    color:#900B09;
    font-size:1em;
    font-weight:normal;
    }
    in your CSS, and you might have visited that link in your FF, but not in IE
    Am I right?
    The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)

  • #8
    New to the CF scene
    Join Date
    Feb 2009
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Well you are quite right of course. But deleting .content a:visited has different effects on hover. However I had it working on another site without problems. The W3C CSS site does show an example having the same sequence as mine. Visited has no effect on the hover after clicking their example link and returning to it. It still hovers in a different color.

    You have taken the Footer portion which is also wrong, it should be
    Code:
    #foot a:link, .foot a:visited, .foot a:active {
    color : #900B09;
    Which set me thinking. I changed the code for links in the center column from
    Code:
    .content a:link, a:visited, a:active {
    color : #900b09;
    background-color : transparent;
    to include the attribute .content for each one
    Code:
    .content a:link, .content a:visited, .content a:active {
    color : #900b09;
    background-color : transparent;
    which solved it. But thank you for your input which gave me a fesh idea.

    Gilbert


  •  

    Posting Permissions

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