W
I am playing around with PHP, HTML and CSS...
I keep my header in a separate file and include it.
For now I have two stylesheets (just to make the basics reusable, and to see how it worked out).
One can be dynamically changed (by me naming it in each file)
So my header contains this:
<link rel="stylesheet", type="text/css", href="stylesheets/basicStylesheet" />
<link rel="stylesheet", type="text/css", href="stylesheets/<?php echo $css ?>" />
and each of my files start off with this:
<?php
$css='Stylesheet.css';
require_once("Header.php");
?>
Would it be possible (and would it make sense ) to make it possible to choose to have just one stylehseet or to add one, two, three etc at wish?
I.e. if I have one page that is distinctly different, can I somehow get the header code to work in such a way that I can add a third stylesheet? Or would that just be a waste of time / resources?
Am just trying to figure out if it best to have one large stylesheet with everything, or several small ones that one can add at choice.
I keep my header in a separate file and include it.
For now I have two stylesheets (just to make the basics reusable, and to see how it worked out).
One can be dynamically changed (by me naming it in each file)
So my header contains this:
<link rel="stylesheet", type="text/css", href="stylesheets/basicStylesheet" />
<link rel="stylesheet", type="text/css", href="stylesheets/<?php echo $css ?>" />
and each of my files start off with this:
<?php
$css='Stylesheet.css';
require_once("Header.php");
?>
Would it be possible (and would it make sense ) to make it possible to choose to have just one stylehseet or to add one, two, three etc at wish?
I.e. if I have one page that is distinctly different, can I somehow get the header code to work in such a way that I can add a third stylesheet? Or would that just be a waste of time / resources?
Am just trying to figure out if it best to have one large stylesheet with everything, or several small ones that one can add at choice.