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

Formatting gone awry... what the heck is that doing over THERE!?

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #11  
Old 09-15-2006, 06:13 AM
 
pinklinoleum pinklinoleum is offline
 

Advanced Member
  
Join Date: Aug 2006
Posts: 37
 

Default Re: Formatting gone awry... what the heck is that doing over THERE!?

bummer... i have been using safari to test everything.

any thoughts on how i might correct the formatting to show up the way it's supposed to in other browsers?
__________________
XCART version 4.0.19
Reply With Quote
  #12  
Old 09-15-2006, 08:07 PM
 
pinklinoleum pinklinoleum is offline
 

Advanced Member
  
Join Date: Aug 2006
Posts: 37
 

Default Re: Formatting gone awry... what the heck is that doing over THERE!?

hi again!

i have been playing with the customer/home.tpl file, and now i at least gotten consistant results when i test the site in various browsers....

but... i'm still having issues! (there is always something, huh?)
anyway, i'm stumped! if you want a challenge, here is the revised version of my home.tpl file.

my goal is to have the main content area be left justified..... but also set at 90% width. this way, the contents of my dialog boxes will resize and space out their contents depending on the size of the viewers window.

with an older home.tpl i had this working in Safari, but it didnt look right in other browsers. the way it is now, the main content only scales to 90% width on a product detail page, but no other pages. so weird!? all of my contents in their respective .tpl files is set to 100% width.

>>>why is the table in the home.tpl that holds {include file="customer/home_main.tpl"} not sizing itself to the 100% width property for all the min contents?<<<

anyway.... thanks again for your time!

Code:
{* $Id: home.tpl,v 1.67.2.10 2005/10/31 11:36:14 max Exp $ *} {config_load file="$skin_config"} <HTML> <HEAD> <TITLE> {if $config.SEO.page_title_format eq "A"} {section name=position loop=$location} {$location[position].0|escape} {if not %position.last%} :: {/if} {/section} {else} {section name=position loop=$location step=-1} {$location[position].0|escape} {if not %position.last%} :: {/if} {/section} {/if} </TITLE> { include file="meta.tpl" } <LINK rel="stylesheet" href="{$SkinDir}/{#CSSFile#}"> </HEAD> <BODY background="{$ImagesDir}/backgrd.gif" style="background-repeat: no-repeat" leftmargin="0" topmargin="0" rightmargin="0" bottomargin="0" marginwidth="0" marginheight="0"> { include file="rectangle_top.tpl" } { include file="head.tpl" } {if $active_modules.SnS_connector} {include file="modules/SnS_connector/header.tpl"} {/if} <TABLE width= "90%" border="1" cellpadding="0" cellspacing="0" align="left"> <TR> <TD width="150" border="0" align= "left" valign="top"> <table valign="top" border="1"><tr><td valign="top" border="1"> {if $categories ne "" and ($active_modules.Fancy_Categories ne "" or $config.General.root_categories eq "Y" or $subcategories ne "")} { include file="customer/categories.tpl" }{/if} {if $active_modules.Manufacturers ne "" and $config.Modules.manufacturers_menu eq "Y"} { include file="modules/Manufacturers/menu_manufacturers.tpl" }{/if}</td></tr></table> </TD> <TD border="0" valign="top"> <!-- central space --><table width=100% border="1" valign="top"><tr><td valign="top"> {include file="customer/home_main.tpl"}</td></tr></table> </td> </TR> </TABLE> </BODY> </HTML>
__________________
XCART version 4.0.19
Reply With Quote
  #13  
Old 09-15-2006, 08:31 PM
 
inebriate inebriate is offline
 

eXpert
  
Join Date: May 2006
Posts: 301
 

Default Re: Formatting gone awry... what the heck is that doing over THERE!?

Quote:
Originally Posted by pinklinoleum
>>>why is the table in the home.tpl that holds {include file="customer/home_main.tpl"} not sizing itself to the 100% width property for all the min contents?<<<

Code:
<TD border="0" valign="top"> <!-- central space --><table width=100% border="1" valign="top"><tr><td valign="top"> {include file="customer/home_main.tpl"}</td></tr></table> </td>

remove the table inside,...change the code up top to:
Code:
<TD border="0" valign="top"> {include file="customer/home_main.tpl"} </td>
__________________
x-cart pro 4.0.18
linux
www.fabric8d.com (currently undergoing construction)
Reply With Quote
  #14  
Old 09-15-2006, 09:31 PM
 
pinklinoleum pinklinoleum is offline
 

Advanced Member
  
Join Date: Aug 2006
Posts: 37
 

Default Re: Formatting gone awry... what the heck is that doing over THERE!?

i took out the table.... but it didn't change anything. weird huh?

in opera, all main content pages are as wide as the contents in them,

it's the same in safari, except for the product details, which actually scale to 100% width like they are supposed to.


is it hopeless?
__________________
XCART version 4.0.19
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 09:17 AM.

   

 
X-Cart forums © 2001-2020