L
leo
I am making a simple CSS. Just 3 boxes, with HEADER on top, CONTENT, which
its height should flow when needed, and finally footer, which should follow
immediately after CONTENT. However, both CONTENT and FOOTER follow
immediately after HEADER, which cause them to overlap. Why?
..header {
font-weight: bold;
text-align: center;
}
..content {
width: 740px;
border: thin dotted #0000FF;
margin: 8;
padding: 8;
text-align: justify;
position: absolute;
left: 50%;
margin-left: -374px;
margin-top: 50px;
}
..footer {
font-style: italic;
text-align: center;
}
its height should flow when needed, and finally footer, which should follow
immediately after CONTENT. However, both CONTENT and FOOTER follow
immediately after HEADER, which cause them to overlap. Why?
..header {
font-weight: bold;
text-align: center;
}
..content {
width: 740px;
border: thin dotted #0000FF;
margin: 8;
padding: 8;
text-align: justify;
position: absolute;
left: 50%;
margin-left: -374px;
margin-top: 50px;
}
..footer {
font-style: italic;
text-align: center;
}