eatonphil
eatonphil

Reputation: 13712

CSS link stylesheets from stylesheet

The issue I'm having is that I need to add a second stylesheet to my web site. But I'd rather not update the 20+ HTML pages with a code. Is there any way to link from the existing stylesheet to another? That way I only change one page? The second stylesheet is a font from Google Fonts. Any help would be great!

Upvotes: 0

Views: 127

Answers (2)

udidu
udidu

Reputation: 8588

You can use the @import function in css. for example:

@import url("YOUR_CSS_FILE.css");

Upvotes: 1

Scott Simpson
Scott Simpson

Reputation: 3850

Sure, you can use @import.
http://www.cssnewbie.com/css-import-rule/

Upvotes: 1

Related Questions