SitePoint Sponsor

User Tag List

Results 1 to 2 of 2

Thread: Wikipedia's CSS

  1. #1
    PHP Programmer QReyes's Avatar
    Join Date
    Oct 2001
    Location
    Philippines
    Posts
    698
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Arrow Wikipedia's CSS

    I was studying Wikipedia's use of CSS. And I would like to ask the difference between using:

    Code:
    <style type="text/css" media="screen,projection">/*<![CDATA[*/ @import "/skins-1.5/monobook/main.css?59"; /*]]>*/</style>
    Instead of this:

    Code:
    <link href="/skins-1.5/monobook/main.css?59" rel="stylesheet" type="text/css" />
    Note to self: This is my 696 posts since 2001!
    The Star Circle Quest Community - Community website for SCQ fans.
    Telebisyon.net - Reference guide to TV series shown in the Philippines.
    Lyrics Server Online! - All the lyrics you can get on one website.

  2. #2
    SitePoint Wizard bronze trophy Tyssen's Avatar
    Join Date
    Oct 2005
    Location
    Brisbane, QLD
    Posts
    4,067
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Older browsers that don't support CSS2 also don't understand the @import rule so by using it those browsers will get an unstyled page (which is probably better than them trying to interpret CSS that's too advanced for them).


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
  •