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

Thread: CSS not showing in root but then showing (sometimes) after clicking around

  1. #1
    Join Date
    May 2013
    Posts
    3

    CSS not showing in root but then showing (sometimes) after clicking around

    Hi everyone. First post here.

    So I'm having a bit of an issue with my CSS displaying. When I type in my root domain dissertationformatting.com on Chrome or FF (up to date), the webpage shows without the styles (just unformatted text). Then, after clicking on one of the links in the unformatted menu, the CSS load on the next page. I am unable to get the styles to load at all on Safari (v5.1.9).

    Sometimes it takes several minutes before the CSS will start loading.

    Before each of my tests (desktop pc windows 8, all browsers up to date; laptop pc windows 7, all browsers up to date; macbook air, not sure which OS, Safari 5.1.9), I am clearing my browsing history and starting by typing in the url from scratch.

    I thought it might be a doctype issue earlier, and I've been playing with that today.

    Right now I'm using:

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

    <html xmlns="http://www.w3.org/1999/xhtml">

    Before I was using HTML 4.0 with just a plain <html> tag.

    My style sheet is located at http://www.dissertationformatting.com/style.css

    Is there some kind of delay when updating doctype on your page. Any idea what is going on? I can't figure it out. Any help would be greatly appreciated, thank you!

  2. #2
    Join Date
    May 2013
    Posts
    3
    I forgot to add that the styles seem to be displaying correctly on ie10, even when typing in the root domain after clearing the cache.

  3. #3
    Join Date
    Aug 2006
    Posts
    1,943
    Try changing the encoding on the style.css file to utf-8. There's something funky about it....

    Dave

  4. #4
    Join Date
    May 2013
    Posts
    3
    Awesome! Thanks Dave. That was it. My html editor defaults to ascii and I always forget to change it back. Guess I won't forget anymore!

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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