SitePoint Sponsor

User Tag List

Results 1 to 2 of 2

Thread: CSS file order

  1. #1
    SitePoint Member mystical's Avatar
    Join Date
    Jan 2004
    Location
    NY
    Posts
    15
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    CSS file order

    Hey,

    I don't remember ever seeing anything that stated this:

    External or Internal- Does the order in which the css is layout
    effect the load time of the site. I know most commonly I see
    the body, then the links layed out. But what about the id or
    class tags?

    Should I order it the way its layed out in the html or does this not
    matter?

    An actual example would be appreciated also.

    Robert
    Makes Advertising Fun!
    http://www.MysticalMaze.com

  2. #2
    Winemaster bronze trophy BonRouge's Avatar
    Join Date
    Oct 2004
    Location
    Sendai, Japan
    Posts
    2,417
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    It doesn't matter.
    People usually put global or basic things at the top and then follow the order of the html so that it's easier to locate the style when you have to go back and look for it. If you put things in a seemingly random order, you'll get confused - especially if you have a really long style sheet. The style sheet for my personal site for example, is about 1500 lines long and if I don't have some kind of order I'll be totally lost when it comes to updating it.


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
  •