![]() |
Need help centering...really :)
I'm not an html dummy but for the life of me I can't figure out how to center my store. I have the table in the header template set to align="center" with a width of 750 but it's not working. Also the store front appears different on different browers. Using Mozilla Firefox my entire store front is aligned on the left side. With IE the header is centered but the rest stretches across the whole page ignoring the 750 table width.
I'd like the whole set up centered on the page with a width of 750. Where do I set this option? Template? CSS file? I couldnt' find it. Does that make any sense? I just need to know which template sets this option. I feel like an idiot because I know this must be EASY but I can't figure it out. :oops: version 3.5.3 GOLD |
Can you post your skin1/customer/home.tpl here please.
Please also make sure you wrap it in [code] tags. |
Here you go, thanks for looking! :)
Code:
{* $Id: home.tpl,v 1.54 2003/11/17 08:43:32 svowl Exp $ *} |
Try wrapping your bulk of home.tpl in a fixed width table that is centered like so.
Code:
<body LEFTMARGIN=0 TOPMARGIN=0 RIGHTMARGIN=0 BOTTOMMARGIN=0 MARGINWIDTH=0 MARGINHEIGHT=0> becomes Code:
<body LEFTMARGIN=0 TOPMARGIN=0 RIGHTMARGIN=0 BOTTOMMARGIN=0 MARGINWIDTH=0 MARGINHEIGHT=0> and at the bottom Code:
{ include file="poweredby.tpl" } becomes Code:
{ include file="poweredby.tpl" } and that forum signature needs a version #! ;) |
simple way ...
edit rectangle_top.tpl Code:
{* $Id: rectangle_top.tpl,v 1.7 2003/04/09 07:41:05 olga Exp $ *} :wink: |
I made the edit suggested by Shan (I'm all for the easy way) and my storefront is now centered in IE but still resides on the left in Firefox.
Getting closer, just not there complete yet. Thanks for the help and suggestions. Any other ideas? |
Just curious, is my site centered in firefox ( http://www.bcsengineering.com/store/catalog )? I've checked it in Mozilla, Opera and IE but I don't have firefox installed.
I do this for my centering Code:
<table border=0 width=85% cellpadding=0 cellspacing=0 align="center"> Carrie |
Yes it IS centered. Where did you add that table tag?
|
I don't remember why at the time, but I commented out rectangle_top.tpl in customer/home.tpl and rearranged some things. So here is a snip of my home.tpl
Code:
<body LEFTMARGIN=0 TOPMARGIN=5 RIGHTMARGIN=0 BOTTOMMARGIN=0> I believe you may need to change the end of home.tpl and/or rectangle_bottom.tpl to reflect the change of the table structure. So I have the head.tpl included within the main page's table. I think what adpboss suggested was basically what I did in the end, I just did it in a different method. Hope this helps. Carrie |
Thanks, Carrie! I'll check it out tomorrow.
|
All times are GMT -8. The time now is 10:52 PM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.