215 users online (0 members and 215 guests)  

  Results 1 to 2 of 2


  1. Replies: 0
  2. Embedding Fonts (stylesheets)    Forum: CSS Forum
    Replies: 8
  1. #1
    lsachs's Avatar
    New User

    Join Date
    Nov 2002

    one or two stylesheets

    I'm working on a project that has waaay too many CSS files governing the pages. This being a corporate site, many people have modified the CSS's and all sorts of havoc has resulted, mostly b/c of duplicitous names of classes in different sheets. "bodycopy" defined one way on this.css and another way in that.css. I should add that most of these CSS's are not b/c of browser fixes, but for different types of content in different areas.

    I'd like to distill it down to two, although I'm tempted to make it one. My question is:
    • If I create two, am I in the clear as long as I'm conscientious to eliminate the duplicate class names?

    • Are there any cautions to avoid when deploying multiple stylesheets.

    While there are probably opinions on both sides of the fence, if you have an opinion can you explain why you see it as 1 sheet or many?

    Thanks to all in advance!

  2. #2
    QuietDean's Avatar

    Join Date
    Oct 2000
    Bournemouth, UK
    Hi there,

    Two stylesheets is fine. One is also fine

    If you use more than one, the only thing to realy remember is that the 'later' stylesheet will override the 'earlier' stylesheet, with 'later' being defined as being called second in the html page.

    As long as you eliminate the clashing classes then there is no reason why you can't use as many sheets as you like. If your stylesheet is going to be as huge as it sounds, it may be worth splitting it up furthur. maybe a stylesheet for forms, a stylesheet for structure, a stylesheet for links etc.

    It sounds like you have a big job ahead of you (I had to clean up my employers intranet, took weeks) but good luck, I am sure the results will be worth it.
    If one of our members helps you, please click the icon to add to their reputation!
    No support via email or private message - use the forums!
    Before you ask, have you Searched?

Tags for this Thread