Welcome to Dream.In.Code
Getting PHP Help is Easy!

Join 131,772 PHP Programmers for FREE! Get instant access to thousands of PHP experts, tutorials, code snippets, and more! There are 2,110 people online right now. Registration is fast and FREE... Join Now!




Site lining to left side in Internet Explorer, but centered in Mozilla

 
Reply to this topicStart new topic

Site lining to left side in Internet Explorer, but centered in Mozilla

gettemsharkie
post 9 Oct, 2008 - 05:07 PM
Post #1


New D.I.C Head

*
Joined: 9 Oct, 2008
Posts: 3

Hello everyone,

I'm a high school wrestling coach that enjoys doing small graphic design projects.. I created a website for my wrestling team.. however the pages when displayed align to the left side of the screen in Internet Explorer. In Mozilla the pages are centered (just like i want them). If someone could please tell me why this is happening, and how to get my pages centered in Internet Explorer.. I would greatly appreciate it.

The site: www.garwrestling.com
User is offlineProfile CardPM

Go to the top of the page

DilutedImage
post 9 Oct, 2008 - 05:11 PM
Post #2


D.I.C Addict

Group Icon
Joined: 20 Nov, 2006
Posts: 642



Thanked 6 times

Dream Kudos: 25
My Contributions


This question should be in the HTML & CSS section.

Centering the table via align won't always work. Place a div around all your content, with the left and right margins set to auto. Then set text-align to center for your body element.

See this tutorial:
CSS Centering



This post has been edited by DilutedImage: 9 Oct, 2008 - 05:15 PM
User is offlineProfile CardPM

Go to the top of the page

gettemsharkie
post 9 Oct, 2008 - 05:14 PM
Post #3


New D.I.C Head

*
Joined: 9 Oct, 2008
Posts: 3

the website is

www.garwrestling.com


any help or advice would be greatly appreciated!

thanks,
rick
User is offlineProfile CardPM

Go to the top of the page

DilutedImage
post 9 Oct, 2008 - 05:15 PM
Post #4


D.I.C Addict

Group Icon
Joined: 20 Nov, 2006
Posts: 642



Thanked 6 times

Dream Kudos: 25
My Contributions


Yeah, I saw that after I posted. biggrin.gif
User is offlineProfile CardPM

Go to the top of the page

gettemsharkie
post 9 Oct, 2008 - 05:32 PM
Post #5


New D.I.C Head

*
Joined: 9 Oct, 2008
Posts: 3

DilutedImage,
thank you very much for you help.. i really appreciate it!

im going to try and figure it out tonight.

thanks again,

rick
User is offlineProfile CardPM

Go to the top of the page

DilutedImage
post 9 Oct, 2008 - 08:19 PM
Post #6


D.I.C Addict

Group Icon
Joined: 20 Nov, 2006
Posts: 642



Thanked 6 times

Dream Kudos: 25
My Contributions


Happy to help. smile.gif
User is offlineProfile CardPM

Go to the top of the page

pemcconnell
post 10 Oct, 2008 - 01:52 AM
Post #7


D.I.C Regular

Group Icon
Joined: 5 Aug, 2008
Posts: 392



Thanked 35 times

Dream Kudos: 75
My Contributions


the best way to center a table (for cross browser support), in my opinion is:
CODE

<center>
<table cellpadding="0" cellspacing="0" style="width:300px; border:1px solid #CCC; text-alilgn:left;">
<tr>
<td>look at me :)</td>
</tr>
</table>
</center>


Hope that helps

This post has been edited by pemcconnell: 10 Oct, 2008 - 01:54 AM
User is offlineProfile CardPM

Go to the top of the page

DilutedImage
post 10 Oct, 2008 - 02:16 PM
Post #8


D.I.C Addict

Group Icon
Joined: 20 Nov, 2006
Posts: 642



Thanked 6 times

Dream Kudos: 25
My Contributions


The center tag was deprecated in HTML 4.01, and should not be used. Use CSS for styling.
User is offlineProfile CardPM

Go to the top of the page

Fast ReplyReply to this topicStart new topic
Time is now: 11/20/08 01:49PM

Live PHP Help!

PHP Tutorials

Reference Sheets

PHP Snippets

Bye Bye Ads

Free DIC T-Shirt

T-Shirt Example

Related Sites

Monthly Drawing

Thumb Drive

Partners

Top Contributors

Top 10 Kudos This Month