Jump to content

Merging CSS Files


sridaran

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...