War Room

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

Featured Warrior Special Offer...
"Members Of The *War Room* Discover Secrets To Immediate Success!"
Reply
 
LinkBack Thread Tools
Old 10-16-2009, 11:27 AM   #1
Warrior Member
 
Join Date: Oct 2009
Posts: 15
Thanks: 12
Thanked 0 Times in 0 Posts
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  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 10-16-2009, 11:44 AM   #2
Active Warrior
War Room Member
 
Join Date: Oct 2009
Posts: 35
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  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
The Following User Says Thank You to Bex7175 For This Useful Post:
Old 10-16-2009, 11:57 AM   #3
Warrior Member
 
Join Date: Oct 2009
Posts: 15
Thanks: 12
Thanked 0 Times in 0 Posts
Default Re: Webpage Alignment problems with Internet Explorer

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

My nightmare continues!!!!
waynemartin2 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 10-16-2009, 02:16 PM   #4
The Scarecrow
War Room Member
 
Poglia's Avatar
 
Join Date: Sep 2008
Posts: 147
Thanks: 1
Thanked 11 Times in 11 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">

Poglia is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
The Following User Says Thank You to Poglia For This Useful Post:
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  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
The Following User Says Thank You to parsfa For This Useful Post:
Old 10-16-2009, 02:22 PM   #6
HyperActive Warrior
War Room Member
 
Join Date: Feb 2008
Location: Escondido, CA
Posts: 364
Thanks: 16
Thanked 38 Times in 38 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 online now  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
The Following User Says Thank You to Aronya For This Useful Post:
Old 10-16-2009, 02:26 PM   #7
The Scarecrow
War Room Member
 
Poglia's Avatar
 
Join Date: Sep 2008
Posts: 147
Thanks: 1
Thanked 11 Times in 11 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.

Poglia is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
The Following User Says Thank You to Poglia For This Useful Post:
Old 10-16-2009, 02:33 PM   #8
HyperActive Warrior
War Room Member
 
Join Date: Feb 2008
Location: Escondido, CA
Posts: 364
Thanks: 16
Thanked 38 Times in 38 Posts
Default Re: Webpage Alignment problems with Internet Explorer

Works on my system.
Aronya is online now  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
The Following User Says Thank You to Aronya For This Useful Post:
Old 10-16-2009, 04:00 PM   #9
Warrior Member
 
Join Date: Oct 2009
Posts: 15
Thanks: 12
Thanked 0 Times in 0 Posts
Default Re: Webpage Alignment problems with Internet Explorer

OK, I will definitely try this and report back.

Thanks guys!
waynemartin2 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 10-16-2009, 04:11 PM   #10
Warrior Member
 
Join Date: Oct 2009
Posts: 15
Thanks: 12
Thanked 0 Times in 0 Posts
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  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
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 05:00 PM.