Can we include one css file in another ?

We can include a css file in another file so that the file inherits all the code of the included file.This will enable the new file to be loaded after the file from which css is being inherited.This is how you can do it with one single line of code at the top of your new css file

@import url("my_included_file.css");


That is all.

If you liked this article please do leave a reply and share it with friends.

Thanks.

Leave a Reply

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.