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
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.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.