Thanks for the replies everyone - I'm starting to get it. Here's my HTML/CSS code - can someone check that it's okay? I'd hate to start working on it and then find out I made a big error somewhere.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"[url]http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd[/url]">
<html>
<head>
[Title and meta content here...]
<link rel="stylesheet" type="text/css" href="styles/aagstyle.css" />
</head>
<body>
<div id="header">
<div id="header-inner">
[Logo and menubar/nav will go here...]
</div>
</div>
<div id="wrap">
[website content will go here...]
</div>
</body>
</html>
-The first line of code (<?xml version="1.0" encoding="UTF-8"?>) is necessary, for whatever reason, for my editor (Komodo Edit) to display previews. Would there be any harm if I left this when I uploaded the site to the web? Or should I take it out each time I upload?
html {font-size:100.01%;height:101%;}
body {
height:100%;
font:62.5%/1.4 Arial,Tahoma,Geneva,Helvetica,sans-serif;
background-image: url(../images/backgrounds/bg_body.jpg);
background-repeat: repeat-x;
background-position:0px 100px;
width:960px;
width:100%;
color:#333
}
#wrap {width:960px;margin:0 auto;}
#header {
background-image: url(../images/backgrounds/bg_header.jpg);
background-repeat: repeat-x;
height:100px;
margin:0; padding:0;
width:100%
}
#header-inner {
text-align:center;
width:960px;
margin: 0 auto;
padding-top:20px
}
-I had some issues making the body background appear underneath the header background (which is 100px high), but I think what I've done is correct. At least, it appeared so in my browser.
-I read your discussion... do I still need "text-align:center" in #header-inner? I suppose I could use a class for centering the text/logo...
-This is somewhat unrelated, but I'd like my content underneath the header to be inside a box with rounded-top corners. I've googled a bit - will "Nifty Corners" work okay? Is there anything better you would recommend?
Thanks.
Last edited by NikMac (2009-09-26 19:58:48)