/    Sign up×
Community /Pin to ProfileBookmark

10px margin in IE but not Firefox?

I have a page with a classic 3 column layout, with a footer

There is a margin of around 10px between the bottom of the columns and the footer in IE but not Firefox. How can I get rid of it in IE?

The HTML:

[code]
<div id=”wrap”>

<div id=”headerphoto”></div>

<div id=”leftFrame”>
<p>Some text</p>
</div>

<div id=”rightFrame”>

</div>

<div id=”mainFrame”>
<p>Main text</p>
</div>

<div id=”footer”>
<p>footer text</p>
</div>
</div>
[/code]

And the CSS:

[code]

#wrap {
text-align: left;
background: #ffffff;
color: #303030;
margin: 10px auto;
padding: 0;
width: 760px;
border: 1px solid #2d4e83;
}

#rightFrame {
float: right;
width: 175px;
height: 460px;
margin: 0px 0px 0px 0px;
padding: 0;
font-size: 0.9em;
background-image: url(rhspic.jpg);
}

#leftFrame {
float: left;
width: 162px;
height: 460px;
margin: 0px 5px 0px 0px;
background: #b9c4d6;
border-right: 1px solid #f0f0f0;
padding: 0px;
text-align: left;
}

#mainFrame {
margin: 10px 175px 0px 160px;
border-right: 1px solid #f0f0f0;
padding: 0 10px 0 10px;
text-align: left;
}

#footer {
clear: both;
margin: 0px;
padding: 10px 0 10px 0;
border-top: 1px solid #f0f0f0;
width: 760px;
text-align: center;
color: #808080;
background: #ffffff;
font-size: 0.9em;
}

[/code]

to post a comment
CSS

4 Comments(s)

Copy linkTweet thisAlerts:
@ShrineDesignsDec 06.2005 — body {
margin: 0%;
}
Copy linkTweet thisAlerts:
@FangDec 07.2005 — #mainFrame {
height:1%;
.
.
Copy linkTweet thisAlerts:
@cusimar9authorDec 07.2005 — Thanks guys, I'll give that a try ?
Copy linkTweet thisAlerts:
@toicontienDec 07.2005 — I've found a safer way to get IE-Win to behave is to give the offending HTML tag width. Be sure to keep in mind the [url=http://www.w3.org/TR/CSS21/box.html#box-dimensions]CSS Box Model[/url] and bear in mind that [url=http://www.communitymx.com/content/article.cfm?cid=E0989953B6F20B41]IE5-Win gets it wrong[/url].
×

Success!

Help @cusimar9 spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.2,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,
)...