markmid
11-28-2005, 09:21 AM
Okay after ripping my hair out i'll get right to it. I've been around in circles with this annoyance now for several days.
The width of the centre content column is different in IE and Firefox, the thing is I have no idea why. Its probably to do with the padding which IE likes and Firefox doesn't or something, if you have a hack for padding please send it my way.
Here is the site:
http://www.debtloaninvest.com/test.html
You'll need to open this up in IE then firefox to see what I am talking about.
Firefox is out IE is lined up correctly.
Ignore the footer comment that is fine now unless i have to alter it again :)
Here is the html code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<link type="text/css" rel="stylesheet" href="styles/mainstyle.css">
<title>test page</title>
</head>
<body>
<div id="wrap">
<div class="headcol">
<p><img src="images/debtloaninvestbusinesssuccess.gif" width="760" height="155"></p>
</div>
<div class="headsep"> <img src="images/whitespace.gif" width="760" height="49">
</div>
<div id="innerwrap">
<div class="leftcol" >
<p> <br>
<br>
<br>
Text goes here</p>
</div>
<div class="maincol">
<p><br>
<br>
<br>
Text Goes here...
</div>
</div>
<div id="clearwrap">
</div>
<div class="footer" >
<p align="left"><br>
<Bottom Links here.><br>
This is the troubled footer, which I have had to make the same color as the
main page :) as it extended behind the other columns...<br>
</p>
</div>
</div>
</body>
</html>
Here is the Css Code.
body{
background-color:#333366;
margin:0;
padding:0;
text-align:center;
}
#pagewidth{ }
#wrap {
width:760px;
margin:0 auto;
text-align:left;
}
#innerwrap {
width:760px;
float:none;
margin:0 auto;
}
#clearwrap {
float:left;
margin:0 auto;
}
div.headcol{
width:760px;
top:17px;
height:155px;
}
div.headsep{
background-color: #FFFFFF;
height:40px;
width:760px;
}
div.footer{
background-color:#FFFFCC;
float:left;
padding:2px;
width:100%;
}
div.leftcol{
background-color: #F8F1D7;
color: #333366 ;
width:150px;
float:left;
padding:2px;
}
div.maincol{
background-color: #FFFFFF;
padding:2px;
width:610px;
float:right;
}
I won't alter this so the bug stays the same when you view it, i'll alter a seperate test sheet.
Thank you for your time.
-Edit tried to sort the spacing out so its easier to read but the forum doesn't like it :(
The width of the centre content column is different in IE and Firefox, the thing is I have no idea why. Its probably to do with the padding which IE likes and Firefox doesn't or something, if you have a hack for padding please send it my way.
Here is the site:
http://www.debtloaninvest.com/test.html
You'll need to open this up in IE then firefox to see what I am talking about.
Firefox is out IE is lined up correctly.
Ignore the footer comment that is fine now unless i have to alter it again :)
Here is the html code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<link type="text/css" rel="stylesheet" href="styles/mainstyle.css">
<title>test page</title>
</head>
<body>
<div id="wrap">
<div class="headcol">
<p><img src="images/debtloaninvestbusinesssuccess.gif" width="760" height="155"></p>
</div>
<div class="headsep"> <img src="images/whitespace.gif" width="760" height="49">
</div>
<div id="innerwrap">
<div class="leftcol" >
<p> <br>
<br>
<br>
Text goes here</p>
</div>
<div class="maincol">
<p><br>
<br>
<br>
Text Goes here...
</div>
</div>
<div id="clearwrap">
</div>
<div class="footer" >
<p align="left"><br>
<Bottom Links here.><br>
This is the troubled footer, which I have had to make the same color as the
main page :) as it extended behind the other columns...<br>
</p>
</div>
</div>
</body>
</html>
Here is the Css Code.
body{
background-color:#333366;
margin:0;
padding:0;
text-align:center;
}
#pagewidth{ }
#wrap {
width:760px;
margin:0 auto;
text-align:left;
}
#innerwrap {
width:760px;
float:none;
margin:0 auto;
}
#clearwrap {
float:left;
margin:0 auto;
}
div.headcol{
width:760px;
top:17px;
height:155px;
}
div.headsep{
background-color: #FFFFFF;
height:40px;
width:760px;
}
div.footer{
background-color:#FFFFCC;
float:left;
padding:2px;
width:100%;
}
div.leftcol{
background-color: #F8F1D7;
color: #333366 ;
width:150px;
float:left;
padding:2px;
}
div.maincol{
background-color: #FFFFFF;
padding:2px;
width:610px;
float:right;
}
I won't alter this so the bug stays the same when you view it, i'll alter a seperate test sheet.
Thank you for your time.
-Edit tried to sort the spacing out so its easier to read but the forum doesn't like it :(