Forum Moderators: not2easy
I know this subject has been discussed a few times, but can anyone tell me what is the right approach to fix this code?
Here is the code...
stylesheet:
BODY {
FONT-SIZE: 80%; MARGIN: 8px; FONT-FAMILY: Arial, Helvetica, sans-serif; BACKGROUND-COLOR: #ffffff
}
#head {
WIDTH: 100%; HEIGHT: 139px
}
#centre {
PADDING-RIGHT: 5px; PADDING-LEFT: 5px; PADDING-BOTTOM: 5px; MARGIN: 15px 24% 0px; BORDER-LEFT: #009966 1px solid; PADDING-TOP: 5px
}
#left {
PADDING-RIGHT: 5px; PADDING-LEFT: 0px; LEFT: 8px; PADDING-BOTTOM: 5px; WIDTH: 23%; PADDING-TOP: 5px; POSITION: absolute; TOP: 155px
}
#right {
PADDING-RIGHT: 0px; PADDING-LEFT: 5px; RIGHT: 8px; PADDING-BOTTOM: 5px; BORDER-LEFT: #009966 1px solid; WIDTH: 23%; PADDING-TOP: 5px; POSITION: absolute; TOP: 155px
}
#foot {
PADDING-RIGHT: 0px; BORDER-TOP: #009966 1px solid; PADDING-LEFT: 0px; PADDING-BOTTOM: 0px; PADDING-TOP: 5px; TEXT-ALIGN: center
}
page code:
<BODY
<DIV id=head>
header header header header header header header header header header header header header header header header header header header header header header header header header header header header header header header header header header header header header header header header header header header header header
</DIV>
<DIV id=left> left menu<br />
left menu<br />
left menu<br />
left menu<br />
left menu<br />
left menu<br />
left menu<br />
</DIV>
<DIV id=centre>
centre column centre column centre column centre column centre column centre column centre column centre column centre column centre column centre column centre column centre column centre column centre column centre column
</DIV>
<DIV id=right> right menu<br />
right menu<br />
right menu<br />
right menu<br />
right menu<br />
right menu<br />
</DIV>
<DIV id=foot>
footer footer footer footer footer footer footer footer footer footer footer footer footer footer footer footer footer footer footer footer footer footer footer footer
</DIV>
</BODY></HTML>
clear:both on the footer. The way you float the columns will depend on what order you want to use for the source code, and how simple or complex you are willing to go.
HelenDev, have you looked into using IE7 [dean.edwards.name] to overcome the overflow problem?