Answers for "how to make diffrent php pages have diffrent styles"

PHP
0

how to make diffrent php pages have diffrent styles

<?
$css = array('path_to_css_file', 'path_to_another_css_file');
require_once('header.php'); // aka the top
?>

[about page content goes here]

<?
require_once('footer.php'); // aka the bottom
?>
Posted by: Guest on October-30-2021
0

how to make diffrent php pages have diffrent styles

<html>
<head>
<title></title>
<link rel="stylesheet" type="text/css" href="main_style_sheet.css" />
<?
if (isset($css) && is_array($css))
  foreach ($css as $path)
    printf('<link rel="stylesheet" type="text/css" href="%s" />', $path);
?>
</head>
<body>
Posted by: Guest on October-30-2021

Code answers related to "how to make diffrent php pages have diffrent styles"

Browse Popular Code Answers by Language