/    Sign up×
Community /Pin to ProfileBookmark

[RESOLVED] Internet Explorer 6.0 problems

Hi all,

I used Webcalendar for our site plus additional header and footer. I got everything to work correctly in Firefox and Explorer 7.0 and the page passed the validator check. However in Internet Explorer 6.0 the calendar appears in the top left corner instead of in the middle. I’ve spent a couple of days looking for why it does that but no luck. Any ideas?

My site is at [url]http://www.rodgershealth.org/calendar[/url]

Thank you for your help.

to post a comment
CSS

4 Comments(s)

Copy linkTweet thisAlerts:
@TaboFeb 25.2008 — You're using XHTML, meaning you are using margin:0pt auto; to centre align the content. This does not work in a lot of versions of IE when applied to a table, so instead use <div style="margin:0pt;auto">. You also need to use text-align:center; to get support for old versions of IE, then make everything else align left after.

Though there is a bug in IE5/mac with centre aligning tables, however I don't have a mac and I think the bug only apples to <div align="center">

I advise you do this:

<div style="margin:0pt auto;text-align:center">

<table style="width:400px;">

<tr>

<td style="text-align:left">

...</...>

</div>
Copy linkTweet thisAlerts:
@Frank62Feb 25.2008 — Ken,

The XML line above the doctype line makes IE6 go in quirks mode, and in quirks mode IE6 does not support margin: 0 auto. The doctype line has to come first.
Copy linkTweet thisAlerts:
@KenLauthorFeb 25.2008 — Thank you so much for your quick response. Will give it a try.
Copy linkTweet thisAlerts:
@WebJoelFeb 26.2008 — ... so instead use <div style="margin:0pt[SIZE=4][B];[/B][/SIZE]auto">. [/quote] [B]margin:0px auto; [/B](no " ; " between the values. -Just a typo. ?
×

Success!

Help @KenL 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.29,
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,
)...