Hi,
I've got a problem with this CSS/HTML:
1) the "main content nbla" bit doesn't seem to be going wide enough (there is about a 20px gap)
2) the footer doesn't seem to wanna play ball In IE 7, it shows all the way to the right (and causes the whole thing to scroll over) - and in FF 3, it shows at the bottom kinda ok - but it seem to go far too wide :/
Can anyone explain to me why this is happening? I'm trying to learn CSS, but seems I've stumbled quite early on (just brough a good book, but don't think I'm quite far enough along to work out whats going on here <G>)
TIA!
Andy
I've got a problem with this CSS/HTML:
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "[URL unfurl="true"]http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">[/URL]
<html xmlns="[URL unfurl="true"]http://www.w3.org/1999/xhtml">[/URL]
<head>
<meta http-equiv="Content-Language" content="en-gb" />
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252" />
<title>Star Gazer</title>
<style>
#wrapper {
margin: 0 auto;
padding: 0px;
width: 750px;
}
#header {
float: center;
margin: 0 auto;
padding: 0px 20px 0px 0px;
width: 750px;
background: purple;
}
#content {
float: center;
margin: 0 auto;
padding: 0px 0px 0px 0px;
width: 750px;
background: blue;
}
#content {
float: left;
margin: 0 auto;
padding: 0px 0px 0px 0px;
width: 750px;
background: orange;
}
#footer {
clear: both;
position: absolute;
bottom: 0 !important;
bottom: -1px;
width: 100%;
margin: 0;
padding: 0;
background: red;
}
#sidebar {
float: left;
width: 200px;
background: green;
}
</style>
</head>
<body>
<div id="wrapper">
<!-- Start Header -->
<div id="header">
main header
</div>
<!-- end header -->
<!-- Main Content -->
<div id="content">
<!-- Start SideBar -->
<div id="sidebar">
main sidebar
</div>
<!-- END SideBar -->
main content nbla
</div>
<!-- END Main Content -->
<!-- Start Footer -->
<div id="footer">
the footer
</div>
<!-- END Footer -->
</div> <!-- end wrapper -->
</body>
</html>
1) the "main content nbla" bit doesn't seem to be going wide enough (there is about a 20px gap)
2) the footer doesn't seem to wanna play ball In IE 7, it shows all the way to the right (and causes the whole thing to scroll over) - and in FF 3, it shows at the bottom kinda ok - but it seem to go far too wide :/
Can anyone explain to me why this is happening? I'm trying to learn CSS, but seems I've stumbled quite early on (just brough a good book, but don't think I'm quite far enough along to work out whats going on here <G>)
TIA!
Andy