Answers for "how to change css code with index.php"

PHP
2

change css in php

Rename your style.css file to style.php, then add the following to the top of the file:

<?php header("Content-type: text/css"); ?>
This line tells the browser that the file is CSS instead of HTML. 
In your HTML files, change the stylesheet references from style.css to style.php. For example:

<link rel="stylesheet" type="text/css"
 media="screen" href="style.php">
Posted by: Guest on January-31-2021

Code answers related to "how to change css code with index.php"

Browse Popular Code Answers by Language