View Full Version : Use separate style sheets

07-24-2007, 02: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.

07-24-2007, 02: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

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