Navigation CSS not loading correctly....

Discussion in 'CSS' started by astretch, Apr 10, 2008.

  1. #1
    Navigation on my site was done in CSS. Some people have noticed that when the enter the site for the first time navigation is all screwed up.

    However if they reload the page, navigation loads correctly.

    Site: www.astretchout.com

    Can you please have a look at my site to see if I need to reorder how navigation CSS files are loaded or is it something else that has to be changed?

    Any help is appreciated.

    Thanks!
     
    astretch, Apr 10, 2008 IP
  2. nexenator

    nexenator Peon

    Messages:
    41
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Looked at it with firefox and everything seems ok. What browser did your users use when comlplaining?
     
    nexenator, Apr 11, 2008 IP
  3. Cobnut

    Cobnut Peon

    Messages:
    184
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Hi astretch,

    This might be the infamous 'Flash of Unformatted Content' that IE6 (and 7?) loves to do. When you use only @import for your CSS files IE can sometimes display the page very briefly without any CSS. The solution is just to use a single 'normal' link after your @imports - even a non-existent file, e.g.
    <link rel="stylesheet" type="text/css" media="print" href="print.css" />
    Code (markup):
    Oh, and please, please, please, please, make that woman go away. Nothing more annoying than a sound file that starts playing un-asked for.

    Jon
     
    Cobnut, Apr 11, 2008 IP
  4. astretch

    astretch Member

    Messages:
    82
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    41
    #4
    Cobnut: She'll only annoy you once every 2 weeks ;)
     
    astretch, Apr 14, 2008 IP