Results 1 to 6 of 6

Thread: Firefox - hover span loads on page load

  1. #1
    Join Date
    Feb 2010
    Posts
    29
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Default Firefox - hover span loads on page load

    does anyone know why in Firefox (only) one of my hover spans is always on when the page is first clicked on (i.e when page first loads) but then when you browse another page and navigate / click back, the dodgy (on) hover span has gone.

    you can see the problem (in FF) when you load the page for the first time below.

    http://www.lotus-architects.com/-history-.html

    returning to the page after it has cached is ok - but if you clear cache the 'always-on' hover span returns ?

    (also can anyone tell me how i can 'resolve', or close, one of my previous posts.)

  2. #2
    Join Date
    Sep 2008
    Location
    Seattle, WA
    Posts
    135
    Thanks
    1
    Thanked 11 Times in 11 Posts

    Default

    I believe that if you take the errant quote from this line:

    Code:
    ms-filter:"progid:DXImageTransform.Microsoft.Alpha(opacity=70);
    Should be:

    Code:
    ms-filter: progid:DXImageTransform.Microsoft.Alpha(opacity=70);

    It should fix your problem. Basically that quote is 'breaking' your CSS from that point on which is making FF ignore some of the rules. Give it a whirl and let me know if that did it.

  3. #3
    Join Date
    Feb 2010
    Posts
    29
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Default many thanks (problem solved)

    many many thanks - that sorted it out ( i had no idea it was something that simple! - well spotted, not sure where i got the quote from - i'm new to html and css so i just copied from the web somewhere)

    thanks again

    PS any idea how to close this post (i.e give it a resolved / solved status

  4. #4
    Join Date
    Sep 2008
    Location
    Seattle, WA
    Posts
    135
    Thanks
    1
    Thanked 11 Times in 11 Posts

    Default

    A good thing to get is a text/code editor like Notepad++ that color codes the code so you can determine if everything is correct. Basically you'd copy and paste your CSS code into Notepad++, select CSS under Languages (as it also does PHP, Perl, Javascript, etc.) and you'll see that it colorizes the various tags and selectors. In your case, after the errant ", the color scheme was broken which indicates either an unclosed tag or something else that CSS can't comprehend. Good way to debug.

  5. #5
    Join Date
    Feb 2010
    Posts
    29
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Default

    just dowloaded notepad++...thanks its fantastic...wished someone had told me 6 months ago when i started html/css!. thanks again for the tip.

  6. #6
    Join Date
    Feb 2010
    Posts
    29
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Default Firefox - hover span loads on page load has returned

    for some reason the dodgy hover span seems to have returned - i don't know why, maybe i did n't test the last solution properly, but my CSS now does n't contain the dodgy ";" (link below)


    http://www.lotus-architects.com/-history-.html

    any ideas what it might be ?

Bookmarks

Posting Permissions

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