kimlb
02-27-2005, 02:34 AM
CSS:
.page_border {
margin: 0px auto;
width: 750px;
border: 1px solid #000;
background-color: #fff;
}
.main_left_col_330, .main_right_col_330 {
width: 330px;
padding: 0px 10px 10px 10px;
display: inline;
border: 1px solid #ccc;
background-color: #eee;
}
.main_left_col_330 {
float: left;
margin: 15px 15px 15px 15px;
}
.main_right_col_330 {
float: right;
margin: 15px 15px 15px 0px;
}
.main_banner {
font: 10pt/20px Arial, Verdana, Tahoma, Times, Sans-Serif;
padding: 0px;
margin: 10px 0px 10px 0px;
border: 1px solid #000;
background-color: #fff;
text-align: center;
}
.end_container {
width: 698px;
padding: 10px;
margin: 0px 15px 15px 15px;
border: 1px solid #000;
}
HTML:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head><link type="text/css" rel="stylesheet" href="css/style.css"></head>
<body>
<div class="page_border">
<div class="main_left_col_330">
<div class="main_banner"><a href="latin.htm">Latin1</a></div>Latin text.</div>
<div class="main_right_col_330">
<div class="main_banner"><a href="latin.htm">Latin</a></div>Latin text.</div>
<div class="end_container">Latin text go here</div>
</div>
</body>
</html>
IE displays this fine; left and right columns, then end_container below, all wrapped inside page_border.
FF/Opera is another case, though. I'm of the impression that the floats are causing the problem, but I can't see any other way of dedicating the elements to the left/right sides, respectively. These browsers put end_container "above/behind" the left/right columns, whereas it should be displayed at the end (below left/right columns).
Any help appreciated.
Thanks,
Kim.
.page_border {
margin: 0px auto;
width: 750px;
border: 1px solid #000;
background-color: #fff;
}
.main_left_col_330, .main_right_col_330 {
width: 330px;
padding: 0px 10px 10px 10px;
display: inline;
border: 1px solid #ccc;
background-color: #eee;
}
.main_left_col_330 {
float: left;
margin: 15px 15px 15px 15px;
}
.main_right_col_330 {
float: right;
margin: 15px 15px 15px 0px;
}
.main_banner {
font: 10pt/20px Arial, Verdana, Tahoma, Times, Sans-Serif;
padding: 0px;
margin: 10px 0px 10px 0px;
border: 1px solid #000;
background-color: #fff;
text-align: center;
}
.end_container {
width: 698px;
padding: 10px;
margin: 0px 15px 15px 15px;
border: 1px solid #000;
}
HTML:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head><link type="text/css" rel="stylesheet" href="css/style.css"></head>
<body>
<div class="page_border">
<div class="main_left_col_330">
<div class="main_banner"><a href="latin.htm">Latin1</a></div>Latin text.</div>
<div class="main_right_col_330">
<div class="main_banner"><a href="latin.htm">Latin</a></div>Latin text.</div>
<div class="end_container">Latin text go here</div>
</div>
</body>
</html>
IE displays this fine; left and right columns, then end_container below, all wrapped inside page_border.
FF/Opera is another case, though. I'm of the impression that the floats are causing the problem, but I can't see any other way of dedicating the elements to the left/right sides, respectively. These browsers put end_container "above/behind" the left/right columns, whereas it should be displayed at the end (below left/right columns).
Any help appreciated.
Thanks,
Kim.