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

Need help in aligning button

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 02-28-2005, 05:43 PM
 
artinion artinion is offline
 

Advanced Member
  
Join Date: Feb 2005
Location: Bangkok, Thailand
Posts: 37
 

Default Need help in aligning button

I am having problems in aligning the button that says "Buy Now". The following is the original code found in "/skin1/buttons/button.tpl".

Code:
{* MAKE SURE YOU HAVE NO REDUNDANT CARRIAGE RETURNS IN THIS FILE ! *}{if $type eq "input"}{assign var="img_type" value="INPUT type=image"}{else}{assign var="img_type" value="img"}{/if}{capture name=goimage}{include file="buttons/go_image.tpl"}{/capture}{if $style eq "button" and $webmaster_mode ne "editor"}<SCRIPT> if (navigator.appName.indexOf('Microsoft')>=0) document.write('<nobr><{$img_type} src="{$ImagesDir}/but1.gif" width="7" height="14" border="0" align="absmiddle"><FONT class="Button">{$button_title}</FONT>[img]{$ImagesDir}/but2.gif[/img]</nobr>'); else document.write('<font class="FormButton">{$button_title} <{$img_type} {$smarty.capture.goimage|replace:"\r":""|replace:"\n":""}></font>' ); </SCRIPT>{else}<font class="FormButton">{$button_title} <{$img_type} {include file="buttons/go_image.tpl"}></font>{/if}

In the original default version of X-Cart gold, 3 column layout and orange scheme, the button lines up correctly. When I am trying to customize it, it has become misaligned. The middle and the ends do not line up.

What should I edit? I saw this post http://<a href="http://forum.x-cart.com/viewtopic.php?t=12538&highlight=button+aligned" target="_blank">ht...on+aligned</a> but the code above does not have tables.

Art
__________________
X-Cart v. 4.0.12 Gold
Linux, Apache, MySQL, PHP 4
Reply With Quote
  #2  
Old 02-28-2005, 06:11 PM
 
balinor balinor is offline
 

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

Default

Your original template files are stored in the skin1_original folder. Take a look at that and see what you might have changed to cause the problem.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #3  
Old 02-28-2005, 07:51 PM
 
artinion artinion is offline
 

Advanced Member
  
Join Date: Feb 2005
Location: Bangkok, Thailand
Posts: 37
 

Default

Got it. Thank you.

Art
__________________
X-Cart v. 4.0.12 Gold
Linux, Apache, MySQL, PHP 4
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 10:26 AM.

   

 
X-Cart forums © 2001-2020