/    Sign up×
Community /Pin to ProfileBookmark

Large left border confuses IE

[url]http://chris.paing.com/index.php[/url]

Looks as I would expect in Firefox, but IE is confused. The footer in IE thinks its left position is at -150px (the size of the left navbar). I get the same effect even if I add clear:both a bunch or put the footer div at the bottom of the wrapper div.

The css is as follows:

[code]
body { margin:0px; padding:0px; width:100%; background-color:#649CB7; font-family:helvetica, arial, sans-serif; }
p { margin-top:0px; }
img { border:none; }

#header { margin:0px; padding:16px; background-color:#649CB7; }
#header * { margin:0px; padding:0px; border:none; }
#header img { float:left; width:67px; height:107px; margin-right:16px; }

#titlebar { margin-bottom:32px; }
#titlebar h1 { display:inline; padding-bottom:8px; padding-right:16px; color:#ffffff; border-bottom-color:#003063; border-bottom-style:solid; border-bottom-width:3px; }
#titlebar span { padding-left:32px; color:#003063; font-size:50%; }

#navbar { background-color:#649CB7; }
#navbar li { float:left; width:130px; list-style:none; margin-right:16px; }
#navbar a { display:block; width:100%; padding-top:4px; padding-bottom:4px; color:black; text-align:center; text-decoration:none; background-color:#CCCC99; border-top-color:#999966; border-top-style:solid; border-top-width:2px; border-bottom-color:#999966; border-bottom-style:solid; border-bottom-width:2px; }
#navbar a:hover { font-weight:bold; border-top-color:#660000; border-top-style:solid; border-top-width:2px; border-bottom-color:#660000; border-bottom-style:solid; border-bottom-width:2px; }
#navbar li.thispage { padding-top:4px; padding-bottom:4px; text-align:center; color:black; font-weight:bold; text-decoration:none; background-color:#CCCC99; border-top-color:#660000; border-top-style:solid; border-top-width:2px; border-bottom-color:#660000; border-bottom-style:solid; border-bottom-width:2px; }

#wrapper { vertical-align:top; margin:0px; padding:0px; background-color:#ffffff; }
#leftnav { vertical-align:top; margin:0px; padding:16px; float:left; width:118px; background-color:#CCCC99; }
#content { vertical-align:top; margin:0px; padding:32px; border-left-color:#CCCC99; border-left-style:solid; border-left-width:150px; background-color:white; }
#footer { margin:0px; padding:0px; padding-top:16px; padding-bottom:16px; background-color:#649CB7; }
#footer * { margin:0px; padding:0px; border:none; vertical-align:middle; font-weight:bold; color:#003063; text-decoration:none; }
#footer span { padding-left:32px; padding-right:32px; }

.adobe { border:black solid 2px; padding:5px; background-color:#FFFFCC; width:492px; text-align:justify; }
[/code]

to post a comment
CSS

2 Comments(s)

Copy linkTweet thisAlerts:
@toicontienJul 21.2005 — Sounds like you might be suffering from the [url=http://www.positioniseverything.net/explorer/creep.html]Magik Creeping Text bug in IE-Win[/url]. You mention a left border, which is one cause of the bug. Left Borders + Bottom Padding on the same element spells disaster in Internet Explorer/Windows.
Copy linkTweet thisAlerts:
@FeldonauthorJul 21.2005 — Yep, that was the problem. Thanks!
×

Success!

Help @Feldon 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.17,
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: @nearjob,
tipped: article
amount: 1000 SATS,

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

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