I was designing my site and after I tought hey this looks good I noticed a crap load of extra space on the right side, I’m fairly new to css and I use Frontpage. Also I was having trouble my button background is not stretching the full left nav bar length even tough I tell it to.
CSS
[QUOTE]
#main
{
background: silver;
margin: -20px 0;
width: 870px;
height: 685px;
border: 4px inset silver;
border-top: 0px ridge black;
}
#headertop
{
background: white;
width: 850px;
height: 60px;
margin: 20px 10px;
border: 2px outset gray;
}
#headerimg
{
margin: 0px 180px;
}
#menuhead
{
background: transparent url(images/jconbutton.gif) center center repeat-x;
text-align: center;
text-decoration: none;
width: 150px;
margin: 0px 0px;
color: white;
border: 2px outset gray;
}
.menu
{
float: left;
background: white;
list-style-type: none;
margin: 0px 20px;
border: 3px double black;
width: 150px;
height: 500px;
font-weight: bold;
}
.menu li a
{
text-align: center;
text-decoration: none;
background: transparent url(images/jconbuttonhover.gif) center center repeat-x;
width: 150px;
margin: 0px 0px;
color: blue;
border: 2px outset gray;
}
.menu li a:visited, .menu li a:active
{
color: white;
}
.menu li a:hover
{
background: transparent url(images/jconbutton.gif) center center repeat-x ;
color: silver;
border: 2px inset gray;
}
#textarea
{
float: right;
background: white;
border: 0px double black;
margin: -500px 190px;
width: 500px;
height: 400px;
}
#rgtnav
{
background: white;
float: right;
width: 150px;
height: 500px;
margin: -500px 700px;
border: 3px double black;
}
body
{
background: white;
width: 880px;
}
#footer
{
font-style: italic;
font-size: x-small;
bottom: -15%;
position: absolute;
}
HTML
[QUOTE]
<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “
<html xmlns=”
<head>
<title>J-Con Web Design</title>
<meta http-equiv=”Content-Type” content=”text/html; charset=windows-1252″ />
<link rel=”stylesheet” href=”jcon.css” type=”text/css” />
</head>
<body>
<div id=”main”>
<div id=”headertop”>
<img src=”images/jconbanner.gif” alt=”” id=”headerimg” />
</div>
<ul class=”menu”>
<li id=”menuhead”>Menu</li>
<li><a href=””>Home</a></li>
<li><a href=””>About Me</a></li>
<li><a href=””>Portfolio</a></li>
<li><a href=””>Links</a></li>
<li><a href=””>Contact Me</a></li>
</ul>
<div id=”textarea”>
Hello! Welcome to the test.
</div>
<div id=”rgtnav”>
This is a right navagation..
</div>
<p id=”footer”>© 2007 J-Con Web Design. Site designed by J-Con Web Design.</p>
</div>
<p>
<a href=”
src=”
alt=”Valid XHTML 1.0 Transitional” height=”31″ width=”88″ /></a>
</p>
</body>
</html>
Could someone help me out here its driving me freakin mad. Thanks a bunch