The Tutorials Online

Full Version: Many CSS file in one code
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Here in this small tutorial i will show you how u can add many CSS files in just one code.

For an example if you have 5 CSS files to attach with page which means u have to write this code :-
Code:
<link rel="stylesheet" type="text/css" href="somefile.css" />

now u have no need to write that code 5 times in header for indicating file .css files. You can make one more .css file with anyname Suppose :- newfile.css u want and use this code in that newfile.css
Code:
@import "file1.css";
@import "file2.css";
@import "file3.css";
@import "file4.css";
@import "file5.css";

and now use this code only inside <head> </head>
Code:
<link rel="stylesheet" type="text/css" href="newfile.css" />

you all .CSS files will be redirected through only one .CSS file.

Thats it
Regards
Reference URL's