View Full Version : Ugh! Why isn't this working!?


Orange Juice
07-01-2004, 02:25 AM
Ok, here's the code that's not working:

body
{ margin-top: 0;
margin-bottom: 0;
margin-left: 0;
margin-right: 0;
padding-left: 0;
padding-right: 0;
}

#header {
margin: 0px;
padding: 0px;
height: 0px;
}
#left {
position: absolute;
left: 0px;
top: 170px;
width: 160px;
border: 2px solid #ADAB9C
}
#center {
top: 0px;
margin-left: 158px;
margin-right: 201px;
border: 2px solid #ADAB9C
}
#right {
position: absolute;
right: 0px;
top: 170px;
width: 203px;
border: 2px solid #ADAB9C
}



and here's the URL of the site:
http://veritestudios.sphosting.com/css.html

See how the right and left divs fit perfectly with the header? See how the middle one doesn't? No matter what I do, I can't get the middle div to move up just a teeny bit. I tried changing the "top: 0px" but nothing happened! Pleaseeeee help me - CSS is driving me crazy! lol

Alcy
07-01-2004, 03:54 AM
I think you left may have just left out position: absolute --

#center {
position: absolute;
top: 170px;
margin-left: 163px;
margin-right: 201px;
border: 2px solid #ADAB9C
}