/    Sign up×
Community /Pin to ProfileBookmark

Firefox and IE positioning differently

Firefox absolutely positions exactly how I tell it. IE on the other hand seems to be out on the Y-axis. Note the gap between the title banner and the panels underneath:

[url]www.thefingerpicker.com[/url]

Is there any method I can use to match them up so the gap’s the same size in both browsers? I would like to see if it’s possible before I go ahead and lay out the rest of the page. I guess it’s not the end of the world if I can’t do it without a table, but it would be nice. Here’s my CSS:

[CODE]body {
background-color:#99CC33;
}
div.banner {
height:150px;
width:760px;
background-image: url(titlebanner.jpg);
padding:0px;
}

div.nav {
position:absolute;
left:8px;
top:170px;
width:150px;
background-image: url(navmid.gif);
}

div.navtext {
padding:10px;
padding-top:0px;
text-align:left;
vertical-align:top;
font-size:11px;
font-family: arial, verdana, sans-serif;

}

div.lesson {
position:absolute;
left:170px;
top:170px;
width:598px;
background-image: url(lessonmid.gif);

background-repeat: repeat-y;
}

div.lessontext {
border-style:none;
border-width:0px;
padding-top:0px;
padding-left:30px;
padding-right:30px;
padding-bottom:0px;
text-align:left;
font-size:12px;
font-family:arial, verdana, sans-serif;
}
p.note {
font-weight:bold;
background-color:#ffcc33;
color:#000000;
padding:12px;
border-width:1px;
border-style:dashed;
}
div.mainlinks {
position:absolute;
left:30px;
top:132px;
font-family: verdana, arial, sans-serif;
font-size:14px;
}

img.tab {
margin-top:30px;
margin-bottom:0px;
}
img.panelbottom {
vertical-align:bottom;
}[/CODE]

to post a comment
CSS

3 Comments(s)

Copy linkTweet thisAlerts:
@FangDec 15.2005 — Using a XML declaration puts IE in [URL=http://www.w3.org/International/articles/serving-xhtml/#quirks]quirks mode[/URL], remove it.

Also the default body margin is different in IE and FF. In your case set the body margin to 8px.
Copy linkTweet thisAlerts:
@King_PupauthorDec 15.2005 — Great! That's solved it.

So it's OK to have a strict XHTML doctype without the XML declaration?
Copy linkTweet thisAlerts:
@FangDec 15.2005 — It's not compulsory
×

Success!

Help @King_Pup 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.18,
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,
)...