deastwood
10-25-2006, 02:51 PM
Hello, I have been trawling google to try and find an answer for this and have got nowhere so I thought time to ask the experts,
This code works fine in ie6 and firefox, normally my webpages always run fine and I never have any problems but ie 7 end for some reason makes the box not fill the page.
Please have a look at this page www.oxygensolutions.net/preview as you can see in ie6 and firefox they all meet up but in ie7 there is a 6 pixel gap between the first box and the second box, i guess this is the padding, but i have no idea why it does it, the code im using is:
.mainlarge {
width: 400px;
height: 125px;
margin: 0px;
padding: 0px;
float: left;
}
.mainlargetop {
width: 394px;
height: 18px;
margin: 0px 0px 0px 0px;
padding: 3px 3px 3px 3px;
background-color: #30678a;
}
.mainlargebottom {
width: 394px;
height: 100px;
margin: 0px 0px 0px 0px;
padding: 3px 3px 3px 3px;
background-color: #007ab0;
}
And the HTML code is:
<div class="mainlarge">
<div class="mainlargetop">
<h1>welcome</h1>
</div>
<div class="mainlargebottom"></div>
</div>
any advice is greatly appreciated!
Thanks
oh and ignore the fact the other boxes are different height (that does not effect it just havent changed it all back yet after trying to solve the error)
This code works fine in ie6 and firefox, normally my webpages always run fine and I never have any problems but ie 7 end for some reason makes the box not fill the page.
Please have a look at this page www.oxygensolutions.net/preview as you can see in ie6 and firefox they all meet up but in ie7 there is a 6 pixel gap between the first box and the second box, i guess this is the padding, but i have no idea why it does it, the code im using is:
.mainlarge {
width: 400px;
height: 125px;
margin: 0px;
padding: 0px;
float: left;
}
.mainlargetop {
width: 394px;
height: 18px;
margin: 0px 0px 0px 0px;
padding: 3px 3px 3px 3px;
background-color: #30678a;
}
.mainlargebottom {
width: 394px;
height: 100px;
margin: 0px 0px 0px 0px;
padding: 3px 3px 3px 3px;
background-color: #007ab0;
}
And the HTML code is:
<div class="mainlarge">
<div class="mainlargetop">
<h1>welcome</h1>
</div>
<div class="mainlargebottom"></div>
</div>
any advice is greatly appreciated!
Thanks
oh and ignore the fact the other boxes are different height (that does not effect it just havent changed it all back yet after trying to solve the error)
