Categories
CSS

How to include one CSS file in another?

Spread the love

Sometimes, we want to include one CSS file in another.

In this article, we’ll look at how to include one CSS file in another.

How to include one CSS file in another?

To include one CSS file in another, we use @import.

For instance, we write

@import url("mystyle.css");

to import mystyle.css in a CSS file to add the styles from the file.

Conclusion

To include one CSS file in another, we use @import.

By John Au-Yeung

Web developer specializing in React, Vue, and front end development.

Leave a Reply

Your email address will not be published. Required fields are marked *