Hi all,
I am having a problem and confused about what is going on with my DIV’s. I have 3 DIV’s that are supposed to stick together to create a white box (not separated). The middle div and the bottom div work fine, but the top div just won’t stick on the top of the middle div. I have tried to set the padding and margin to 0px and still no luck.
The weird thing is, if I enable the borders, they would stick together. But after I disable the borders again, they separate again..
How do you guys do it?
Regards,
Dhimoet
Note: I have uploaded a screenshot if you guys don’t understand my poor English ?
Oh, and here is the code:
[code=php]
#content-box-top {
margin-left: auto;
margin-right: auto;
margin-top: 100px;
width: 800px;
height: 80px;
background-image: url(‘images/content-box-top.png’);
background-repeat: no-repeat;
}
#content-box-bottom {
margin-left: auto;
margin-right: auto;
width: 800px;
height: 80px;
background-image: url(‘images/content-box-bottom.png’);
background-repeat: no-repeat;
}
#content-wrapper {
margin-left: auto;
margin-right: auto;
width: 800px;
background-color: #FFFFFF;
min-height: 400px;
}