Hello there.
I am coding a website together and it seems as though my #wrapper and #cont divs are not allowing me too have any color onto the background.
Any help will be great. I don't understand why it doesn't work

Here is the index page.
Code:
<!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>
<link href="index.css" rel="stylesheet" type="text/css"/>
<title>Music Website</title>
</head>
<body>
<div id="wrapper">
<div id="header">
<div id="connect">
<ul>
<li class="textconnect">Spread the word</li>
<li> <iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fgraphics.uclan.ac.uk%2F%7EMSampson%2FMusic%2520Website%2F&layout=button_count&show_faces=true&width=75&action=like&font=arial&colorscheme=light&height=21" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:75px; height:21px;" allowTransparency="true"></iframe></li>
<li> <a href="http://twitter.com/share" class="twitter-share-button" data-count="horizontal">Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script></li> <!-- twitter tweet api -->
</ul>
</div>
<img src="images/logo.png" alt="Artist Search" width="300px" height="100px" /> <!--The logo image -->
<div id="searchbar">
<form id="search" action="results.php" method="get">
<input id="band" name="band" value="Search Band" onfocus="if (this.value=='Search Band') this.value='';"/>
<input type="submit" value="Search"/>
</div>
<div id="clear">
</div>
</div>
<div id="cont">
<div id="pipe">
<h2>Latest News</h2>
<script src="http://l.yimg.com/a/i/us/pps/listbadge_1.4.js"> <!-- Yahoo pipe start -->
{
"pipe_id":"92d5cc4697a1f950463a708c7f59fcc7",
"_btype":"list",
"hideHeader" : "true",
"width" : "400px", <!-- Width of pipe-->
"height" : "450px",<!--Height of pipe -->
"backgroundColor" : "#87CEEB",
"evenBackgroundColor" : "#87CEEB", <!-- Colour of even news stories - 2nd 4th etc-->
"oddBackgroundColor" : "#87CEEB", <!-- Colour of odd news stories - 1st 3rd etc -->
"count" : 20 <!-- Limit the pipe too show the top 20 stories. -->
}
</script> <!-- Yahoo pipe end-->
</div>
</div>
</div>
<div id="footer">
</div>
</body>
</html>
And here is the CSS code.
Code:
#clear {
clear: both;
}
h1{
color:#ffffff;
text-align:center;
font-family: Arial;
font-size: 16px;
}
h2{
color:#fff;
text-align:left;
font-family: Arial;
font-size: 22px;
}
h3{
text-align:left;
color:#fff
}
body{
color: #fff;
}
#footer {
clear:both;
}
#header{
background-color:#26527c;
}
#wrapper {
height: 80%;
width: 80%;
margin: 0 auto;
}
#searchbar {
text-align: center;
margin: 0 auto;
}
#pipe {
float: left;
}
#cont {
background-color: #4682B4;
width: 500px;
}
#connect {
float:right;
}
#connect ul li {
color:#fff;
font-family: arial;
font-size: 14px;
display: inline;
list-style: none;
}
.textconnect {
padding-right: 15px;
}
I am seeing to have problems attribute colors onto the background of my website, as the color is just the body colouring. I am looking to have the whole background of the website a white and then for my cont too have a blue colour matching the #header div.
Thanks alot.
Matt