Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Fixed Width, Centered Layout Help

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 07-12-2008, 09:01 AM
 
mcpilot mcpilot is offline
 

Advanced Member
  
Join Date: Dec 2004
Location: Cincinnati
Posts: 68
 

Default Fixed Width, Centered Layout Help

Hello,

I am trying to alter the layout of my site to a 900px wide, centered layout. (behind which I'd then like to add some gradient backgrounds, but I'll tackle that when I get to it)

If I change "Rectangle_top.tpl" to 900px, (and some associated tables in home.tpl) I can get the site to fix it's width. But it's left justified.

If I add a DIV in "rectangle_top.tpl" that shows <div align=center> and close the </div> in rectangle_bottom.tpl", it will CENTER in IE but not Firefox.

Also, I am finding that the text is all centering as well, with that one "align center" div.

I'd like to center the 900 px. fixed with site in all browsers but keep the text left-justified.

Can anyone assist in explaining what I am going wrong?

Thanks to all,

Pat
__________________
thebookfarminc.com
Version 4.7.0
Reply With Quote
  #2  
Old 07-12-2008, 09:16 AM
  photo's Avatar 
photo photo is offline
 

X-Wizard
  
Join Date: Feb 2006
Location: UK
Posts: 1,146
 

Default Re: Fixed Width, Centered Layout Help

Quote:
Originally Posted by mcpilot
Hello,

I am trying to alter the layout of my site to a 900px wide, centered layout. (behind which I'd then like to add some gradient backgrounds, but I'll tackle that when I get to it)

If I change "Rectangle_top.tpl" to 900px, (and some associated tables in home.tpl) I can get the site to fix it's width. But it's left justified.

If I add a DIV in "rectangle_top.tpl" that shows <div align=center> and close the </div> in rectangle_bottom.tpl", it will CENTER in IE but not Firefox.

Also, I am finding that the text is all centering as well, with that one "align center" div.

I'd like to center the 900 px. fixed with site in all browsers but keep the text left-justified.

Can anyone assist in explaining what I am going wrong?

Thanks to all,

Pat
Checkout this post and ajust as needed. http://forum.x-cart.com/showpost.php?p=222531&postcount=9
__________________
v4.1.10
In Dev v4.5.x


"If you don't keep an eye on your business, someone else will."
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 01:17 PM.

   

 
X-Cart forums © 2001-2020