Skip navigation
Currently Being Moderated

Linking to two external CSS sheets?

Aug 7, 2012 12:02 AM

1.  Are there any issues with linking to two separate CSS external sheets?

2. Do you just put the link to both sheets one after the other?

 

Thanks.

 
Replies
  • Currently Being Moderated
    Aug 7, 2012 12:14 AM   in reply to StanWelks

    StanWelks wrote:

     

    1.  Are there any issues with linking to two separate CSS external sheets?

    No.

     

     

    2. Do you just put the link to both sheets one after the other?

     

     

    Yes.

     
    |
    Mark as:
  • Currently Being Moderated
    Aug 7, 2012 12:45 AM   in reply to StanWelks
    StanWelks wrote:

     

    1.  Are there any issues with linking to two separate CSS external sheets?


    Link as many as you like within reason (so the performance of the page is not noticably affected).

     

    Some designers link a dozen stylesheets and multiple Server Side Includes too.

     


    StanWelks wrote:

     

    2. Do you just put the link to both sheets one after the other?

    Yes, just bear the rules for conflicting CSS rules in mind.

     

    If a rule is similar or identical in both stylesheets (same specificity) and causes a clash then the rule in the second linked stylesheet (being the last declared rule) wins.

     

    Also a rule in Stylesheet A may inadvertently cascade down to affect page elements controlled by Stylesheet B. These issues can be diagnosed with Dreamweaver's CSS editor or browser tools such as Firebug (for Firefox) and Developer Tools in IE.

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points