With your usual expertise, I am sure someone will smile and say "Yes Tone - it's simple". My first attempt with HTML 5 and CSS3, i am attempting to build a site. I have read through the handbook with CC and also a couple of 'Sitepoint' books, but cannot see my question answered.
I have created an index.html:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="generator" content="CoffeeCup HTML Editor (www.coffeecup.com)">
<meta name="created" content="Mon, 08 Aug 2011 16:49:55 GMT">
<meta name="description" content="">
<meta name="keywords" content="">
<title>The Thatchers Tavern</title>
<!--[if IE]>
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<link href="style1.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div id="wrapper">
<header>
<img src="Images/top_banner.gif" width="1100" height="240" alt=""The Thatcher's Tavern, witth images of wine glasses, a thatcher and green foliage." title="" border="0" />
</header>
</body>
</div> <!--end wapper div-->
</html>
I have also created a style sheet:
/* Default CSS */
/* Generated by the CoffeeCup HTML Editor - www.coffeecup.com */
body {
margin: 0;
padding: 0;
background-image: lake.jpg;
background-color: #B7D7FF;
font: small Helvetica, arial, sans-serif;
}
#wrapper {
width: 1100px;
margin-left: auto;
margin-right: auto;
margin-top:10px;
padding-bottom: 15px;
background-color: #FFFFFF;
}
So you see I have an 1,100 px container for the content and a colour works to fill the remainder of the screen on either side. I would like to put an image in this background portion, but leave the colour for slower browsers, or people with images turned off, BUT I don't know how to write the HTML. I assume it should be inside the boday tags, but not in my container tags ("wrapper") tags.
Any suggestions will be useful.
Thanks
Old Tone
I luv the web
http://www.ajswebdesign.com
http://www.thethatcherstavern.com
http://www.philchambersconsultancy.co.uk