I've just started styling a website that i've designed but i have hit a problem straight away. that problem is that when i create a div for all my content to go into and try to give it a background color, it doesn't do anything, and if i give it a height there is still a white background around the edges..
My code for the site:
<html>
<body>
<link rel="stylesheet" href="/mainmenu.css" type="text/css">
<div id="body">
<?php
$conn=odbc_connect('backuplogs','','');
if (!$conn)
{exit("Connection Failed: " . $conn);}
$sql="SELECT DISTINCT Location FROM BackupLog";
$rs=odbc_exec($conn,$sql);
?>
<div id="content">
<form action="getinfo.php" method="POST">
<select name=t1>
<?php
while (odbc_fetch_row($rs))
{
$location=odbc_result($rs,"Location");
echo "<option>";
echo $location;
}
?>
</select>
<select name=t2>
<?php
$sql2="SELECT DISTINCT Responsible FROM BackupLog";
$rs2=odbc_exec($conn,$sql2);
while (odbc_fetch_row($rs2))
{
$responsible=odbc_result($rs2,"Responsible");
echo "<option>";
echo $responsible;
}
odbc_close($conn);
?>
</select>
<input type=Submit value=Search>
</div>
</div>
</body>
</html>
the css file:
#body {
background-color: #104E8B;
}
#content {
background-color: #104E8B;
}
Thanks for any help