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

"Add To Cart" button background size

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 02-20-2005, 06:20 PM
 
happy5ru happy5ru is offline
 

Member
  
Join Date: Feb 2005
Posts: 17
 

Default "Add To Cart" button background size

Hi,
Can anyone help me find the file where you specify the height of a background image of the "Add to cart" button- butbg.gif
In buttons/button.tpl you can change the sizes for the front of the button (but1.gif) and back of the button ( but2.gif) but it doesn't seem to have anything to do with the backround. I looked into the skin1.css where the background is specified and there doesn't seem to be any size at all. Please help me! Thank you!


X-cart 4.11
RMA,
Config,
Affiliate,
AOM
__________________
Elena
XCart 4.011
Reply With Quote
  #2  
Old 02-21-2005, 05:10 AM
 
balinor balinor is offline
 

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

Default

Just specify the height of the middle cell in button.tpl.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #3  
Old 02-21-2005, 09:12 AM
 
happy5ru happy5ru is offline
 

Member
  
Join Date: Feb 2005
Posts: 17
 

Default

That's the problem. I DID specify the cell height. But it still shows up half way as the original 16. It seems like it's specified somewhere else. Any ideas?
__________________
Elena
XCart 4.011
Reply With Quote
  #4  
Old 02-21-2005, 01:05 PM
 
Yang Xu Yang Xu is offline
 

Senior Member
  
Join Date: May 2004
Location: Portland, Oregon
Posts: 175
 

Default

Hi,

What you can do is removing the background setting from skin1.css and all put in the button.gif file like I did in my site: Carts n Tools .com
__________________
Carts n Tools.com
- New Root HTML Generator
- Templates | Add-Ons | Services
- XCart 4.0.x
Reply With Quote
  #5  
Old 02-21-2005, 04:42 PM
 
happy5ru happy5ru is offline
 

Member
  
Join Date: Feb 2005
Posts: 17
 

Default

Thank you! It worked. I just deleted it from the CSS file and put it as a cell background in the button.tpl. It looks perfect. Thanks!
__________________
Elena
XCart 4.011
Reply With Quote
  #6  
Old 02-21-2005, 06:09 PM
 
balinor balinor is offline
 

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

Default

Just keep in mind that that bit of code (background) is no longer a valid html 4.01 tag.
__________________
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 07:58 PM.

   

 
X-Cart forums © 2001-2020