X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Button question: How do you change the height of butbg.gif? (https://forum.x-cart.com/showthread.php?t=9084)

EnriqueHavoc 08-25-2004 08:59 PM

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?

shan 08-26-2004 02:47 AM

the bacground is made with the class for the button and so is dictated by the size of the font.

EnriqueHavoc 08-26-2004 11:54 AM

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

lyncca 08-26-2004 11:56 AM

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=

EnriqueHavoc 08-26-2004 12:22 PM

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

lyncca 08-26-2004 12:27 PM

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 :roll:

Emerson 08-26-2004 01:14 PM

Quote:

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


Oh boy, this can go on and on and on lol

deonya 09-06-2004 10:13 AM

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


All times are GMT -8. The time now is 06:04 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.