Go Back   WarriorForum - Internet Marketing Forums > Warrior Support Forums > Website Design
Register Blogs FAQ Social Groups CalendarHelp Desk

Reply
 
LinkBack Thread Tools
Old 10-16-2009, 11:27 AM   #1
Active Warrior
 
Join Date: Oct 2009
Posts: 34
Thanks: 14
Thanked 1 Time in 1 Post
Default Webpage Alignment problems with Internet Explorer

Hi all, I'm new to this forum but have heard great things about it from other marketers.

Anyway, I have some web page alignment issues that are doing my head in!!

I was hoping somebody could help me out!

The problem im having is that every time I view my web pages in IE8 my page is aligned to the left but I want it to be centered in all browsers. Its fine in Firefox!

If somebody could take a look I would be very grateful.

My problem page is; EatGreatToLoseWeightDietPlan.com/slimming-dieting

I'm sure that to most of you guys this will be easy but to me its borderline Rocket Science.

Thanks in advance guys!

Wayne
waynemartin2 is offline   Reply With Quote
Old 10-16-2009, 11:44 AM   #2
Active Warrior
War Room Member
 
Join Date: Oct 2009
Posts: 34
Thanks: 0
Thanked 4 Times in 4 Posts
Default Re: Webpage Alignment problems with Internet Explorer

Hi Wayne,

Apparently this is quite a common problem in IE8 and can be solved by starting the source code of your page with a complete and valid doctype which needs to be the very first thing on the website (before the usual <html> tag). This doctype is essential for valid HTML/XHTML documents so it could be that causing the problem.

Try inserting this line of code right at the top of your source code:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

Hopefully that'll catch the error.

Looking for high-quality stock photos?
ask4Photos.com is a stock photo gallery providing digital images of a very high standard. Visit ask4Photos.com and feast your eyes on our extensive collection of reasonably priced stock photos.
Bex7175 is offline   Reply With Quote
Old 10-16-2009, 11:57 AM   #3
Active Warrior
 
Join Date: Oct 2009
Posts: 34
Thanks: 14
Thanked 1 Time in 1 Post
Default Re: Webpage Alignment problems with Internet Explorer

Thanks for the pointer, but unfortunately it didn't work.

My nightmare continues!!!!
waynemartin2 is offline   Reply With Quote
Old 10-16-2009, 02:16 PM   #4
The Scarecrow
War Room Member
 
Poglia's Avatar
 
Join Date: Sep 2008
Posts: 189
Thanks: 1
Thanked 15 Times in 15 Posts
Default Re: Webpage Alignment problems with Internet Explorer

Replace this:

<body style="background-color: rgb(153, 153, 153);">
<table style="width: 760px; text-align: left; margin-left: auto; margin-right: auto;" class="border" border="0" cellpadding="0" cellspacing="0">


With this:

<body style="background-color: rgb(153, 153, 153); width: 760px; margin-left: auto; margin-right: auto;">
<table class="border" border="0" cellpadding="0" cellspacing="0">

Need a webmaster to install, configure or transfer your website or blog?
Click here to see what I am offering.
Poglia is offline   Reply With Quote
Old 10-16-2009, 02:19 PM   #5
Warrior Member
 
Join Date: Oct 2009
Posts: 5
Thanks: 0
Thanked 1 Time in 1 Post
Default Re: Webpage Alignment problems with Internet Explorer

hi
why this problem?

parsfa is offline   Reply With Quote
Old 10-16-2009, 02:22 PM   #6
Advanced Warrior
War Room Member
 
Join Date: Feb 2008
Location: Escondido, CA. Becase San Marcos just wasn't hot enough.
Posts: 510
Thanks: 35
Thanked 56 Times in 55 Posts
Default Re: Webpage Alignment problems with Internet Explorer

You just need to change the body tag: <body style="background-color: rgb(153, 153, 153); text-align:center;">
Aronya is offline   Reply With Quote
Old 10-16-2009, 02:26 PM   #7
The Scarecrow
War Room Member
 
Poglia's Avatar
 
Join Date: Sep 2008
Posts: 189
Thanks: 1
Thanked 15 Times in 15 Posts
Default Re: Webpage Alignment problems with Internet Explorer

Quote:
Originally Posted by Aronya View Post
You just need to change the body tag: <body style="background-color: rgb(153, 153, 153); text-align:center;">
Using "text-align: center" on the body will not center tables. The body must have a fixed width and auto margins as I posted above.

Need a webmaster to install, configure or transfer your website or blog?
Click here to see what I am offering.
Poglia is offline   Reply With Quote
Old 10-16-2009, 02:33 PM   #8
Advanced Warrior
War Room Member
 
Join Date: Feb 2008
Location: Escondido, CA. Becase San Marcos just wasn't hot enough.
Posts: 510
Thanks: 35
Thanked 56 Times in 55 Posts
Default Re: Webpage Alignment problems with Internet Explorer

Works on my system.
Aronya is offline   Reply With Quote
Old 10-16-2009, 04:00 PM   #9
Active Warrior
 
Join Date: Oct 2009
Posts: 34
Thanks: 14
Thanked 1 Time in 1 Post
Default Re: Webpage Alignment problems with Internet Explorer

OK, I will definitely try this and report back.

Thanks guys!
waynemartin2 is offline   Reply With Quote
Old 10-16-2009, 04:11 PM   #10
Active Warrior
 
Join Date: Oct 2009
Posts: 34
Thanks: 14
Thanked 1 Time in 1 Post
Default Re: Webpage Alignment problems with Internet Explorer

Hi guys,

Poglia, I tried what you suggested and it worked on a different web page I also had a problem with but not the the one I mentioned in this post.

Aronya, I tried your way and it works on the page I've mentioned above, Harrraaa!!

Thanks a lot guys I really appreciate your input with this, you've been a massive help.

All the best,

A now happy, wayne
waynemartin2 is offline   Reply With Quote
Reply

  WarriorForum - Internet Marketing Forums > Warrior Support Forums > Website Design

Tags
alignment, explorer, internet, problems, webpage

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



All times are GMT -6. The time now is 11:06 AM.