Jump to content

Merging CSS Files


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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...