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

Safari and Firefox issues

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 07-17-2005, 11:34 AM
 
philipcox philipcox is offline
 

Advanced Member
  
Join Date: Jul 2005
Posts: 71
 

Default Safari and Firefox issues

I have resized the head.tpl and the customer/home.tpl tables to about 75% and it is fine in Safari, but when I view it in Firefox the tables they revert back to about 100%. Is there something I can do to fix this?
__________________
Philip Cox
version 4.0.14
Reply With Quote
  #2  
Old 07-17-2005, 11:51 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default

It all depends on how you have it coded.....post what you did to resize the width and we'll tell you what the issue is
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #3  
Old 07-17-2005, 01:59 PM
 
philipcox philipcox is offline
 

Advanced Member
  
Join Date: Jul 2005
Posts: 71
 

Default

Here are the screenshots and the coding for the .tpl files:

www.mountainhideout.com/example.htm
<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#}">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"><style type="text/css">
<!--
</style></HEAD>
<BODY leftmargin="0" topmargin="0" rightmargin="0" bottomargin="0" marginwidth="0" marginheight="0"{if $body_onload ne ''} onload="{$body_onload}"{/if}>
{ include file="rectangle_top.tpl" }
{ include file="head.tpl" }
{if $active_modules.SnS_connector}
{include file="modules/SnS_connector/header.tpl"}
{/if}

<TABLE width="75%" border="0" align="center" cellpadding="0" cellspacing="0">
<TR>
<TD width="6"></TD>
<TD width="150" valign="top">
__________________
Philip Cox
version 4.0.14
Reply With Quote
  #4  
Old 07-17-2005, 02:03 PM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default

You need to change rectangle_top.tpl to 75% and that will shrink both the head and the body. There are two spacer cells on either side of the main body table that will also have to be removed to get the body to go all the way to the edges.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #5  
Old 07-17-2005, 02:26 PM
 
philipcox philipcox is offline
 

Advanced Member
  
Join Date: Jul 2005
Posts: 71
 

Default

In what file do I find the two spacer cells?
__________________
Philip Cox
version 4.0.14
Reply With Quote
  #6  
Old 07-17-2005, 03:36 PM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default

home.tpl
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #7  
Old 07-18-2005, 10:41 AM
 
philipcox philipcox is offline
 

Advanced Member
  
Join Date: Jul 2005
Posts: 71
 

Default

OK. I am completely perplexed. I resized the rectangle_top.tpl to 75% and deleted both spacer cells in home.tpl. The site looks fine in Safari, but in Firefox the cells with the search bar in them are too narrow.

Here is a screenshot: www.mountainhideout.com/example.htm.

Here is the table code in home.tpl:
<TABLE width="75%" border="0" align="center" cellpadding="0" cellspacing="0">

Here is the table code in head.tpl:
<TABLE width="75%" border="0" align="center" cellpadding="0" cellspacing="0">
<TR>
<TD align="center">[img]{$ImagesDir}//mountain-range-header2.png[/img]</TD>
</TR>
</TABLE>
<TABLE width="75%" border="0" align="center" cellpadding="0" cellspacing="0">

Here is the table code in rectangle_top.tpl:
<TABLE align="center" border="0" cellpadding="0" cellspacing="0" width="75%" height="100%">

[/b]
__________________
Philip Cox
version 4.0.14
Reply With Quote
  #8  
Old 07-18-2005, 10:43 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default

That is because you have the tables inside the main table set to 75%, so they are appearing as 75% of the master table...you only need to change the rectangle_top.tpl to 75%..the others should be left at 100%.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #9  
Old 07-18-2005, 12:55 PM
 
philipcox philipcox is offline
 

Advanced Member
  
Join Date: Jul 2005
Posts: 71
 

Default

when i leave the others at 100% and only change the rectangle_top.tpl to 75% the Firefox version is fine, but in Safari the search bar stretches all the way across the page instead of just 75%. Sorry for all the trouble!
__________________
Philip Cox
version 4.0.14
Reply With Quote
  #10  
Old 07-18-2005, 12:57 PM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default

How about removing the size all together for the search bar? Or using a fixed width (like 760px). Damn Macs!
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
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 03:30 PM.

   

 
X-Cart forums © 2001-2020