Results 1 to 2 of 2

Thread: Best way to deal with multiple style sheets?

  1. #1
    Join Date
    Sep 2007
    Posts
    1

    Best way to deal with multiple style sheets?

    I am helping to optimize a site that is built using multiple style sheets. Each sheet is currently linked. When loading, the browser waits for the full sheet to load before requesting the next sheet.

    Should we have all styles in one sheet?

    Should we use import to add in additional styles?

    What is the optimum way to handle multiple sheets?

    Allie

  2. #2
    Join Date
    Feb 2006
    Location
    Salisbury UK
    Posts
    4,332
    Using imports from a different domains will definitely slow loading, but if all stylesheets are from the same directory speed shouldn't be a problem.

    However, you don't want to have the same styles in different stylesheets as the browser should operate the last style it finds, but it may get muddled and take the wrong stylesheet first.

    Try to keep the separate stylesheets for completely different parts of the page, like separate style sheets for a drop down menu or a form or just the font styles and colors.
    Code downloaded to my PC will be deleted in due course.
    WIN7; IE9, Firefox, Opera, Chrome and Safari for Windows; screen resolution usually 1366*768.
    Also IE6 on W98 with 800*600 and IE8 on Vista 1440*900.

Similar Threads

  1. print style sheets : background-color not visible
    By numbenator in forum Web Design, HTML Reference and CSS
    Replies: 0
    Last Post: 07 Jul 2005, 08:41 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •