Well at the min i have got a container which is happily centering on all screen resolutions. The thing is I have four div's that need to go inside it.
#Table, #maincontent, #animatedbanner & #footer
I can't seem to nest them.
Is this right?
<div id="container">
<div id="maincontent">
<h1> Main Content </h1>
<p>Lorem ipsum </p>
</div>
<div id="animatedbanner"></div>
<div id="footer"></div>
</div>
the #Table is the naviagation section or a header, which i made from a sliced image in photoshop and now it seems to have its own javascript code because of the roll over buttons.. so not sure how to nest that into the container either.
this may sound very confusing so any help is great.
the
CSS is:
@charset "utf-8";
/*
CSS Document */
body {
width:100%;
height:auto;
margin:0;
padding: 0;
background-color:#000;
}
#container{
position:relative
width:800px;
margin: 0 auto;
padding:0;
margin:0 auto;
border:1px solid;
height: 568px;
border:1px solid #FFF;
visibility: visible;
width: 750px;
}
#Table{
position: absolute;
height: 70px;
width: 561px;
left:227px;
top: 15px;
right: 106px;
bottom: 15px;
margin:0px;
border:0px;
}
#maincontent{
position:relative;
width:36em;
height:30em;
left:1em;
top:99px;
text-align:left;
padding:0px;
margin:0;
font-family: Verdana, Geneva, sans-serif;
font-size: 12px;
border:solid 1px #CCC;
color:#FFF;
}
#footer{
position:absolute;
width:562px;
left:226px;
height:35px;
padding:0px;
margin:0 auto;
top:526px;
border:#CCC solid 1px;
}
#animatedbanner{
position:absolute;
width:7em;
height:414px;
top:99px;
left:674px;
border:#CCC solid 1px;
margin:0 auto;
text-align: right;
}
i have also been playing with the px, em, %, on width etc trying to solve my problem so you may notice that some may not be consistent
