![]() Topic awaiting preservation: php inside and css (Page 1 of 1) |
|
|---|---|
|
Maniac (V) Inmate From: there...no..there..... |
posted 07-15-2005 03:50
Here is what I am trying to do: code: switch ($_GET['link']){
case 'contact':
$page = "pages/contact.php";
$masthead_title="Contact";
$masthead_image"../images/contact_header.gif";
break;
case 'about':
$page ="pages/about.php";
$masthead_title="About Us";
$masthead_image"../images/about_header.gif";
break;
default:
$page ="pages/main.php";
$masthead_title="Welcome";
$masthead_image"../images/welcome_header.gif";
}
code: <div id="masthead"><h1><span><? echo($masthead_title); ?></span></h1></div>
code: #masthead{
height:55px;
background-image:url(<?echo($masthead_image);?>);
background-repeat:no-repeat;
background-position: right;
font: bold 18pt Georgia, "New Century Schoolbook", "Bitstream Vera Serif", Utopia, "Times New Roman", times, serif;
text-decoration:underline;
margin-bottom:20px;
margin-right:10px;
}
#masthead h1{
margin:0px;
padding:0px;
}
#masthead h1 span {
display:none;
}
|
|
Paranoid (IV) Mad Scientist with Finglongers From: Germany |
posted 07-15-2005 06:50
you'll need to pass in $masthead_title in your <link ref> to your stylesheet. |
|
Maniac (V) Inmate From: there...no..there..... |
posted 07-15-2005 12:46
you mean like: |