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

Button question: How do you change the height of butbg.gif?

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 08-25-2004, 08:59 PM
  EnriqueHavoc's Avatar 
EnriqueHavoc EnriqueHavoc is offline
 

eXpert
  
Join Date: Jul 2004
Posts: 232
 

Default Button question: How do you change the height of butbg.gif?

Im having a problem with buttons:

http://upgrade.motionzoo.com/submit.gif

Ive replaced the default but1.gif, but2.gif, and butbg.gif images that are used for buttons, but notice that since the height of the new images is different than the default images that the middle 1pixel repeating image doesnt display correctly (there shouldnt be another bar over the text)

in button.tpl ive found where to change the height and width of the but1.gif and but2.gif bookend images, but i cant figure out where to set the height of the middle 1pixel wide image.

Anybody have any idea? is it in the css .button class? How would i set the height or remove the resizing?
__________________
X-Cart 4.0.12
PHP 4.3.11
MySQL 4.0.23
Linux/Apache
Net::SSLeay 1.25
libCURL libcurl/7.12.0 OpenSSL/0.9.7a zlib/1.1.4
www.ewdhosting.com
Reply With Quote
  #2  
Old 08-26-2004, 02:47 AM
  shan's Avatar 
shan shan is offline
 

X-Guru
  
Join Date: Sep 2002
Location: Birmingham, UK
Posts: 6,163
 

Default

the bacground is made with the class for the button and so is dictated by the size of the font.
__________________
Looking for a reliable X-cart host ?
You wont go wrong with either of these.

EWD Hosting
Hands On Hosting
Reply With Quote
  #3  
Old 08-26-2004, 11:54 AM
  EnriqueHavoc's Avatar 
EnriqueHavoc EnriqueHavoc is offline
 

eXpert
  
Join Date: Jul 2004
Posts: 232
 

Default

doh! i guess ill have to make a simpler solid color button

thank you

*edit- i tried putting height: 22px; in the .button class and it worked to make the 3 images display together seamlessly but now the text is aligned to the top..

getting closer but not quite there yet. ill post an update here if i can get it to work
__________________
X-Cart 4.0.12
PHP 4.3.11
MySQL 4.0.23
Linux/Apache
Net::SSLeay 1.25
libCURL libcurl/7.12.0 OpenSSL/0.9.7a zlib/1.1.4
www.ewdhosting.com
Reply With Quote
  #4  
Old 08-26-2004, 11:56 AM
  lyncca's Avatar 
lyncca lyncca is offline
 

X-Adept
  
Join Date: Nov 2003
Location: Fort Worth, Texas
Posts: 455
 

Default

On most of our clients we have resorted to just pure CSS buttons since the default one is such an ugly nightmare

Something like this:
http://www.foxwash.com/xcart/customer/product.php?productid=8&cat=0&page=
Reply With Quote
  #5  
Old 08-26-2004, 12:22 PM
  EnriqueHavoc's Avatar 
EnriqueHavoc EnriqueHavoc is offline
 

eXpert
  
Join Date: Jul 2004
Posts: 232
 

Default

yes, im thinking thats the way to go!

why is making a button in xcart so complex? i guess im not understanding why the devs chose this way of doing it :P
__________________
X-Cart 4.0.12
PHP 4.3.11
MySQL 4.0.23
Linux/Apache
Net::SSLeay 1.25
libCURL libcurl/7.12.0 OpenSSL/0.9.7a zlib/1.1.4
www.ewdhosting.com
Reply With Quote
  #6  
Old 08-26-2004, 12:27 PM
  lyncca's Avatar 
lyncca lyncca is offline
 

X-Adept
  
Join Date: Nov 2003
Location: Fort Worth, Texas
Posts: 455
 

Default

Well while we are wondering about that, we can also wonder why they did all these stupid blank table columns for spacing instead of using CSS
Reply With Quote
  #7  
Old 08-26-2004, 01:14 PM
 
Emerson Emerson is offline
 

X-Man
  
Join Date: Mar 2004
Location: Atlanta, GA
Posts: 2,209
 

Default

Quote:
Originally Posted by lyncca
Well while we are wondering about that, we can also wonder why they did all these stupid.....

Oh boy, this can go on and on and on lol
__________________
Emerson
Total Server Solutions LLC- Quality X-Cart Hosting
Recommended X-Cart Hosting Provider - US and UK servers
Does your host backup your site? We do EVERY HOUR!!!
Shared Hosting | Managed Cloud | Dedicated Servers
Reply With Quote
  #8  
Old 09-06-2004, 10:13 AM
 
deonya deonya is offline
 

Member
  
Join Date: Oct 2003
Posts: 18
 

Default

I took BACKGROUND: URL(images/butbg.gif); out of skin1.css

open skin1/buttons/button.tpl and change
Code:
<TD class="Button" valign="middle" nowrap><FONT class="Button">{$button_title}</FONT></TD>

to
Code:
<TD background="{$ImagesDir}/butbg.gif" class="Button" valign="middle" nowrap><FONT class="Button">{$button_title}</FONT></TD>

that worked for me
__________________
Deonya Fields
--------------------------
X-Cart Gold 4.0.4
--------------------------
http://www.pixellab.biz
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 08:12 AM.

   

 
X-Cart forums © 2001-2020