Forum Moderators: not2easy
/***** Header *****/#header {
color:#505050;background:#ffffff url(img/front.jpg) bottom left no-repeat;height:250px;margin:0 0 10px 0;padding:0;
}
#header h1 {
font-size:2.5em;font-weight:normal;letter-spacing:-2px;margin:0 0 4px 15px;padding:15px 0 0 0;
}
#header h1 a,#header h1 a:hover {
padding:0;
}
#header p {
font-size:1.1em;letter-spacing:-1px;margin:0 0 20px 15px;padding:0 0 0 3px;
}
How can I have a unique image for each page without having a separate CSS file for each page?
Thanks :)
* Line : 86 (Level : 1) This property applies to block-level elements. : #content
* Line : 90 (Level : 1) This property applies to block-level elements. : #contentwide
* Line : 94 (Level : 1) This property applies to block-level elements. : #contentfull
* Line : 134 (Level : 1) This property applies to block-level elements. : #footer
* Line : 182 (Level : 1) This property applies to block-level elements. : caption
* Line : 186 (Level : 1) This property applies to block-level elements. : th
* Line : 190 (Level : 1) This property applies to block-level elements. : td
* Line : 260 (Level : 1) This property applies to block-level elements. : .textright
* Line : 264 (Level : 1) This property applies to block-level elements. : .center
Any suggestions?
As for changing the header image on each page, assign a class to the #header (or just add a number to the name) and change your background image, and then associate each class with a different page. For example:
CSS:
#header {background-image:url(image.jpg);}
#header2{background-image:url(image2.jpg);}
#header3{background-image:url(image3.jpg);}
Page1:
<div id="header"></div>
Page2:
<div id="header2"></div>
Page 3
<div id="header3"></div>
Regarding the one I outlines above, I think I'll continue using my own workaround because there will literally be thousands of separate header images and it would turn into a very long css file. My workaround also seems to validate, so if you think it will be OK, I'll continue to use it.....
<head>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
<meta name="description" content="Really great widgets" />
<meta name="keywords" content="Platinum widgets" />
<meta name="author" content="Asia_Expat" />
<link rel="stylesheet" type="text/css" href="widgets.css" media="screen,projection" />
<style type="text/css">
#header {
color:#505050;background:#ffffff url(img/front.jpg) bottom left no-repeat;height:250px;margin:0 0 10px 0;padding:0;
}
</style>
<title>Widgets</title>
</head>
<body>