PDA

View Full Version : Order of CSS and Extrnal Sheet !


spazzer
10-02-2009, 08:34 AM
Hi,
I am designing a site and was wondering does it matter what order the CSS is listed in my External Style Sheet, I was going to re-organise the sheet and group similar items together ?, also my site has no internal styles at all, is this ok, I know that an external sheet is cached so makes loading pages quicker ,is this ok or should there be styles in an internal sheet ?
Many Thanks,
Nick C:grin:

DWcourse
10-02-2009, 02:14 PM
There's no need for internal styles. They're really only useful for styles that you want to override only for a single page.

The order styles appear CAN make a difference IF two different styles with the specificity apply to the same object and conflict, the latter would take precedence. There are also a few other instances where it could make a difference.

But backup your style sheet, rearrange the styles and see what happens. You'll probably be fine.

spazzer
10-02-2009, 03:06 PM
Thanks for your help and advice, I'm still getting to grips with everything but this forum is really helping !

Thanks Again ;-) Nick C