Use multiple css stylesheets in the same html page

Lilz picture Lilz · Nov 26, 2010 · Viewed 124.5k times · Source

How would I use multiple CSS stylesheets in the same HTML page where both stylesheets have a banner class, for instance. How do you specify which class you are referring to?

Answer

Quentin picture Quentin · Nov 26, 2010

Style sheets are, effectively, concatenated into a single style sheet in the order in which they appear in the HTML source.

The normal rules for applying rulesets then apply (i.e. by specificity with the last ruleset that defines a given property winning in the event of a tie and !important throwing a spanner into the works)