/    Sign up×
Community /Pin to ProfileBookmark

IE has a 22px gap in the footer…

On this page:

[url]http://www.businessliving.co.uk/downloads.asp[/url]

The footer should be tight to the image on the left, with only a 1 pixel gap (like it is in Firefox)

Instead, you can see its about 22px away. Also, the leftDiv (which I’ve given a grey background” carries on down 1 extra pixel in IE, to give a 2 pixel border at the bottom.

Any ideas?

Code for the leftDiv, img_propertysearch and footer below:

[code]
#leftDiv {
clear: left;
float: left;
color: #fff;
margin: 0;
padding: 0;
font-size: 9px;
line-height: 0;
width: 200px;
border-top: 1px solid #fff;
background: #ccc;
}

#img_propertysearch {
margin: 1px 0 1px 0;
padding: 0;
}

#footer {
clear: both;
margin: 0 auto;

width: 908px;
height: 20px;
line-height: 16px;
background: #22568a;
padding: 4px 12px 0 0;

text-align: right;
font-size: 11px;
}
[/code]

to post a comment
CSS

4 Comments(s)

Copy linkTweet thisAlerts:
@FangDec 08.2006 — #contentDiv {
float:left;
width:670px;
padding-left:30px;
background: #fff;
}
Copy linkTweet thisAlerts:
@cusimar9authorDec 08.2006 — Ah right I had to do it with padding instead of a margin, weird

Thanks Fang ?

Any idea why there's still 1 extra pixel at the bottom of the leftDiv?
Copy linkTweet thisAlerts:
@FangDec 08.2006 — <img [COLOR=Green]style="display:block;"[/COLOR] id="img_propertysearch" src="downloads_files/locations.gif" alt="Click here to search for properties">
Copy linkTweet thisAlerts:
@cusimar9authorDec 08.2006 — Thanks again Fang ?
×

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 5.25,
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: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

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

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...