How to include or import css file?

andy - 06 Jul, 2013 2226 Views 0 Comment

When you have a long list of css, it will be a good idea to organise or split the css contents into groups or categories. Why you should include css files separately? Well, by splitting them into a small files, it will be easier to maintain and read the css code file.

To import a css file you can use the following import function.

@import url('/path1/main.css');
@import url('/path2/color.css');
@import url('/path3/headings.css');
The above import functions are placed inside a css file.


There are no comments available.

Write Comment
0 characters entered. Maximum characters allowed are 1000 characters.

Related Articles

How to style pagination links with CSS?

Do you need to create a beautiful, simple and elegant pagination links with css? Simply follow our easy and quick tutorial on how to create the pagination links easily with CSS.

Optimizing your site for printing

The easy way to optimize your site for printing is to create a separated external css targeting a media to print only When a printing action is being executed the browser will send over the information from your page to ...