SitePoint Sponsor

User Tag List

Results 1 to 7 of 7
  1. #1
    SitePoint Guru wii's Avatar
    Join Date
    Sep 2004
    Location
    Denmark
    Posts
    720
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question How do you insert your CSS ?

    Im using 2 different approach:

    <style type="text/css">@import url(style.css);</style>

    or

    <link rel="stylesheet" type="text/css" href="style.css" />

    The first is great, also because older browsers will get a text version of the site, which is fully "operational", just without the stylesheet, but I do have a problem with this approach, since validated sites in Windows 2000, tend to load the stylesheet after second or so. This applies only for IE.

    The second approach doesnt have that problem, but the downside is that older browsers will just see a messy site, instead of a clean text version of the site.

    How do you insert your CSS ?

  2. #2
    Ranking in the $$$ tbase's Avatar
    Join Date
    Jun 2004
    Location
    OVER THERE ->
    Posts
    542
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Honestly..I always use the second one

    Thanks
    Tbase
    I want to BUY Google API Keys (Soap).
    PM me if you got one to sell.

  3. #3
    Non-Member
    Join Date
    Jan 2005
    Location
    Netherlands
    Posts
    4,300
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hello

    I think it is a Flash of Unstyled Content (FOUC)

    http://www.bluerobot.com/web/css/fouc.asp

  4. #4
    SitePoint Guru wii's Avatar
    Join Date
    Sep 2004
    Location
    Denmark
    Posts
    720
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks for the link, I will try that.

  5. #5
    SitePoint Enthusiast
    Join Date
    Jan 2004
    Location
    USA
    Posts
    82
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I use the second one. Hopefully it will make those with old browsers finally upgrade

  6. #6
    Non-Member Egor's Avatar
    Join Date
    Jan 2004
    Location
    Melbourne, Australia
    Posts
    7,305
    Mentioned
    1 Post(s)
    Tagged
    1 Thread(s)
    I use the second one, then put only the @import function inside it to load the actual style-sheet.

  7. #7
    SitePoint Evangelist
    Join Date
    Feb 2005
    Posts
    581
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I just use the second method. When I tested my page in NN4 it just got spit out plain so I doubt the "@import" method is really necessary.
    I will not flame the newbies,
    I will not flame the newbies,
    I will flame the newbies...
    Table free is the way to 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
  •