View Single Post
  #25  
Old 09-04-2007, 08:17 PM
 
OpheliaPayne OpheliaPayne is offline
 

Senior Member
  
Join Date: Aug 2007
Posts: 130
 

Default Re: Internet Explorer centering everything

Quote:
Originally Posted by somekindahate
OphelliaPayne,

Your solution of removing the <center> tag and using align="center" is not correct. And like others have stated, you should be using CSS to fix this problem, not deprecated HTML. Remove the align attribute and the center tags you've added.

Go to skin1/customer/main/home.tpl

After the <body> tag add <div id="envelope">
Before the closing </body> tag add </div>

Add the following to your CSS file skin1.css
Code:
body { text-align: center; } #envelope { text-align: left; margin: 0 auto; }

When you view the source, there should be a <div id="envelope"> ... </div> wrapping the contents of the page just inside of the body tag.

This did not work.

Quote:
TABLE.Container { width: 900px; margin-left: auto; margin-right: auto; background-color: #FFFFFF; }

margin-left: auto;
margin-right: auto;

This did work. Thank you.
__________________
xCart 4.6.1
Reply With Quote