sridaran Posted July 21, 2011 Share Posted July 21, 2011 I need to merge multiple CSS files with same name as one file by checking contents of each file. I am doing manually. Is there any other methods to merge css files quickly without missing any content? Link to comment Share on other sites More sharing options...
Ingolme Posted July 21, 2011 Share Posted July 21, 2011 If you have a server-side language, you can make a single file that includes all the CSS and just reference that instead.A PHP example:A file called "css.php" <?php header('Content-type: text/css');include 'css1.css';include 'css2.css';include 'css3.css';include 'css4.css';?> in the HTML document: <link href="styles/css.php" type="text/css" rel="stylesheet"> Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.