Marty
Marty

Reputation: 39466

Importing CSS with @import in conjunction with @charset

If I use the following at the top of my CSS file home.css:

@import "overall.css";

Do I need to (within home.css) redeclare @charset "utf-8"; or is this applied to the current CSS document when it's been defined within the included CSS?

Upvotes: 5

Views: 1229

Answers (1)

Kyle
Kyle

Reputation: 67234

You should define it at the top of the first CSS file, the it will apply to all that are included using @import.

Upvotes: 2

Related Questions