Home > front end >  How does import in css work., and what does this mean
How does import in css work., and what does this mean

Time:05-11

In one of my css files there is this entry

@import url('bootstrap.min.css');

What does this do, does it get it from the internet or local pc.

CodePudding user response:

if you use import rule in your css file , in fact you export all things in bootstrap file in you own css file. just this.

read this article : https://www.w3schools.com/cssref/pr_import_rule.asp

CodePudding user response:

Importing css means to import the file of css from inside the directory or project. e.g. in REACTJS we don't provide the link of our css file inside our view file, we only import it. And its not only in CSS case, it also occurs in various other files like JS or image etc.

  • Related