Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 578
Marty Avatar asked Nov 04 '22 19:11

Marty


1 Answers

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

like image 149
Kyle Avatar answered Nov 15 '22 00:11

Kyle