Jump to content

[SOLVED] More than one stylesheet


liamloveslearning

Recommended Posts

Hi everyone,

I know this is probably a really stupid thinkg to ask but its something which I've never understood, but why do certain websites have more than one stylesheets? like ive noticed some have a style sheet for there nav, one for their page and one for the hacks, is it just for organisation? why cant they put it all into one stylesheet and leave comments by each section?

Thanks

Link to comment
https://forums.phpfreaks.com/topic/165911-solved-more-than-one-stylesheet/
Share on other sites

Mostly for organization but also for optimization.

 

If you have a huge website you might need need all your css definitions on every page. You have one base css file, then load others as you need them.

 

It also allows you to simply override previously defined rules depending on your needs.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.