/    Sign up×
Community /Pin to ProfileBookmark

ie 6 container not centered..

Hi I made this site:

[url]www.e-dialog.com/summit2009[/url]

Its fine everywhere but in IE 6 its not centered correctly…any ideas? I believe ie 6 is not friendly with the float and also the padding with float is what makes it worse. Any ideas?

css (the main is the center container):

[CODE]

html {

margin: 0px;
padding: 0px;
}

body, p, div, h1, h2, img {
margin: 0px;
padding: 0px;
font-size: 12px;
font-family: Arial, SunSans-Regular, Sans-Serif;
}

#main {
position: static;
margin: auto;
width: 913px;
}

[/CODE]

Is it the doctype?:

<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd“>
<html xmlns=”http://www.w3.org/1999/xhtml” xml:lang=”en” lang=”en”>

Thx

to post a comment
CSS

2 Comments(s)

Copy linkTweet thisAlerts:
@WebWarriorJul 07.2009 — I didn't test your Website in IE6, but from what I see in your code is that you need to add text-align: center; to your body element. IE6 incorrectly interprets text-align: center; property and centers your whole layout instead of just text. Of course you would have to add text-align: left; to your #main to override the inherited text-align: center;

body {

text-align: center;

}

#main {

position: static;

margin: auto;

width: 913px;

text-align: left;

}
Copy linkTweet thisAlerts:
@riskmodauthorJul 07.2009 — Thanks I added that...though it did not help it was wise to have it. This might be the div floats...I have 2 divs floating one with the content and the right with the timer...not sure if the padding is just not correctly inputted...thanks though.
×

Success!

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

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

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