DexterMorgan
A Smooth-Skin

Ok, I'm trying to build a webpage based on XHTML and CSS and I have a problem. Here's the code:
XHTML
CSS
Problem is, the "wrapper" tag, which is supposed to contain all other elements (header, sidebar, content, footer) doesn't stretch when I add, for example, some text under "content". Thing is, the text is displayed correctly under the header image but is invisible because wrapper and its white background definition didn't stretch.
Any coders out there?
XHTML
<!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">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>bla</title>
<link href="styles.css" rel="stylesheet" type="text/css" /></head>
<body>
<div id="wrapper">
<div id="header">
</div>
<div id="sidebar">
</div>
<div id="content">
<h1>test</h1>
</div>
<div id="footer">
</div>
</div>
</body>
</html>
CSS
@charset "utf-8";
body
{
background: #000;
font-family:"Lucida Sans Unicode", "Lucida Grande", sans-serif;
font-size: medium;
}
#wrapper
{
width: 800px;
border: #FFF thin dotted;
background: #FFF;
margin: auto;
}
#header
{
background-image:url(images/header.png);
width: 800px;
height: 100px;
}
#content
{
float: right;
width: 644px;
padding: 3px;
}
#sidebar
{
float: left;
width: 144px;
padding: 3px;
}
Problem is, the "wrapper" tag, which is supposed to contain all other elements (header, sidebar, content, footer) doesn't stretch when I add, for example, some text under "content". Thing is, the text is displayed correctly under the header image but is invisible because wrapper and its white background definition didn't stretch.
Any coders out there?