Thread Rating:
- 0 Votes - 0 Average
- 1
- 2
- 3
- 4
- 5
|
Many CSS file in one code
|
| Author |
Message |
Admin
Administrator
      
Posts: 54
Joined: Nov 2009
Reputation: 0
|
Many CSS file in one code
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
|
|
| 01-04-2010 03:19 PM |
|