C
C Garrod
Hello,
I have been devloping a layout using CSS. The header consists of 3 DIV tags
which segment the top of the page into 3 columns. The problem is when I
open the page in a maximised window in MSIE6 the last DIV tag drops down a
line and resides under the top left DIV.
Has anyone come across this before? If so do you know a work around? This
does not seem to occur in Netscape 7.0.
The CSS Code is copied below...
..headleft {
float: left;
height: 69px;
width: 33%;
border-bottom-style: solid;
border-bottom-color: 330066;
color: #330066;
}
..headright {
float: left;
height: 69px;
width: 33%;
text-align: right;
border-bottom-style: solid;
border-bottom-color: 330066;
}
..headmid {
height: 69px;
float: left;
width: 34%;
text-align: center;
border-bottom-style: solid;
border-bottom-color: 330066;
}
And HTML if anyone wants to simulate the page...
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Template</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link href="styles/css.css" rel="stylesheet" type="text/css">
</head>
<body>
<em></em>
<div class="headleft"><span id="larger">Address Line 1</span><br>
<span id="small">Line 2<br>Tel: (00000) 22 xxxx<br>Fax: (00000) 22 xxxx
</span></div>
<div class="headmid">Middle</div>
<div class="headright">Right</div>
</body></body>
</html>
I have been devloping a layout using CSS. The header consists of 3 DIV tags
which segment the top of the page into 3 columns. The problem is when I
open the page in a maximised window in MSIE6 the last DIV tag drops down a
line and resides under the top left DIV.
Has anyone come across this before? If so do you know a work around? This
does not seem to occur in Netscape 7.0.
The CSS Code is copied below...
..headleft {
float: left;
height: 69px;
width: 33%;
border-bottom-style: solid;
border-bottom-color: 330066;
color: #330066;
}
..headright {
float: left;
height: 69px;
width: 33%;
text-align: right;
border-bottom-style: solid;
border-bottom-color: 330066;
}
..headmid {
height: 69px;
float: left;
width: 34%;
text-align: center;
border-bottom-style: solid;
border-bottom-color: 330066;
}
And HTML if anyone wants to simulate the page...
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Template</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link href="styles/css.css" rel="stylesheet" type="text/css">
</head>
<body>
<em></em>
<div class="headleft"><span id="larger">Address Line 1</span><br>
<span id="small">Line 2<br>Tel: (00000) 22 xxxx<br>Fax: (00000) 22 xxxx
</span></div>
<div class="headmid">Middle</div>
<div class="headright">Right</div>
</body></body>
</html>