PDA

View Full Version : Background Color



stevan
03-17-2006, 10:25 PM
I want to change the background color of this header page to a color How would I do that ?? Do I put a new css called header in the main css i quess then change <style type="header/css"> Would that do It

THXS Steve




<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
{strip}<head>
<title>{$smarty.const.DIRECTORY_TITLE}{$smarty.capture.title|strip}</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf8" />
<link rel="stylesheet" type="text/css" href="{$smarty.const.DOC_ROOT}/main.css" />
<style type="text/css">
<img src="http://www.cruisewarehouse.cc/headerlogo.jpg"alt="Cruisewarehouse.cc" /></a></td>
<h1 id="title">Cruisewarehouse.cc</h1>
<p id="descr">{$description}&nbsp;</p>

jscheuer1
03-17-2006, 10:36 PM
<style type="text/css">
<img src="http://www.cruisewarehouse.cc/headerlogo.jpg"alt="Cruisewarehouse.cc" /></a></td>
<h1 id="title">Cruisewarehouse.cc</h1>
<p id="descr">{$description}&nbsp;</p>

That's invalid. There is no closing </style> tag and no styles listed. There is no closing </head> or opening <body> tag before the <img>, <h1> and <p> tags.

If you have a valid document, you can override items in the linked stylesheet with another or with a style section, as long as it appears in the head of the document and after the link whose values you wish to override.