...

View Full Version : Use separate style sheets



jumpink
07-24-2007, 01:41 PM
I have three different pages that are about 75% the same styling. Should I use one style sheet including all the styles or separate sheets for each page.
Thanks

ahallicks
07-24-2007, 01:45 PM
It depends really. When one page is loaded the browser will cache the stylesheet, so if you want it all to load in one go then stick it all in one stylesheet. It's also easier to keep track of as long as you use comments to separate sections.

However, if it's not much in the way of file size then using three would be fine too. It's up to you really, just consider the future of the site and whether you think it'd be easier to keep the styles together or separate them

Arbitrator
07-24-2007, 03:22 PM
<style type="text/css" media="screen">
@import url("master.css"); /* cross‐document styles here */
/* page‐unique styles here */
</style>



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum