1
I would like to know about the use of @import
to import style sheets within another style sheet, for example:
Inside the archive css style.:
@import url("css/layout.css");
body{
background: #F0F0F0;
}
.container{
width: 80%;
margin: 0 auto;
...
}
I need to declare something else so I can use the styles of css layout., as in HTML for example?
It slows the loading of pages this way compared to the direct declaration in the head?
Using @importcan have a negative impact on your site’s performance. According to a post by Steve Sounders, unlike the <link> tag, if you have multiple @importcommands in sequence, they may not be loaded in parallel at the time your page opens. Source https://answall.com/questions/8763/como-utilizar-import-em-um-arquivo-css
– user60252