Is it possible to use @import in one css file like this.
@import file1
some css here
@import file2
chrome doesn’t recognize the second import for the above but this will work
@import file1
@import file2
some css here
The problem here is I need “some css” to be in the middle because file2 will override some of them. Is there any other solution other than importing 3 files from html?
That is not possible:
From http://www.w3.org/TR/CSS21/cascade.html#at-import:
From http://www.w3.org/TR/CSS21/syndata.html#at-rules:
There is no need to define the rules between the
@imports though. If you want to override properties in file 1, they can also be added after the@importblocks. Properties which are overridden in file 2 can be omitted.