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)
-   -   Background Images Not Showing As Intended (https://forum.x-cart.com/showthread.php?t=6215)

enge919 01-26-2004 11:03 PM

Background Images Not Showing As Intended
 
Can someone tell me if there is a way to make a background image show as intended and not multiply.

For example, in the dialog.tpl, I changed the standard xcart dialog_bg.gif to my own image but if the image size is not right on it multiplies.

See http://66.98.204.170/store/customer/pages.php?pageid=3
to see what I am talking about.

This is a clients site I just started and this will never go over.

X-Cart Version 3.5.2


Thanks!

leon 01-27-2004 02:00 AM

Divide your image in 3 pieces, the left blue part (leftblue.gif), the right blue part (rightblue.gif) and just a 1 pixel gray middle (dialog_bg_n.gif).

When the table starts, it starts with a line ( <tr> ), and inside that line it has cells ( <td> ), now if you see your dialog.tpl it only has one cell, so divide it into 3 cells like this:
Code:

<td>[img]{$ImagesDir}/leftblue.gif[/img]<td>
<TD height=15 class=DialogTitle background="{$ImagesDir}/dialog_bg_n.gif" valign=bottom>{$title}</TD>
<td>[img]{$ImagesDir}/rightblue.gif[/img]<td>


enge919 01-27-2004 08:47 AM

worked great! thanks leon.....

one note for anyone else reading this.

I had to change the dialog.tpl to make 2 seperate tables for this to work
Code:

<TABLE border=0 cellPadding=0 cellSpacing=0 {$extra}>
<TR><td>[img]{$ImagesDir}/new/left_dialog_bg.gif[/img]<td>
<TD width="100%" height=15 class=DialogTitle background="{$ImagesDir}/new/center_dialog_bg.gif" valign=bottom>{$title}</TD>
<td>[img]{$ImagesDir}/new/right_dialog_bg.gif[/img]<td>
</TR>
</TABLE>

<TABLE border=0 cellPadding=10 cellSpacing=1 width="100%">
<TR><TD class=DialogBox>{$content}

</TD></TR>
</TABLE>


leon 01-27-2004 11:32 AM

8O It worked ? I was just guessing.... :lol: , no, just kiddin'

Your welcome.


All times are GMT -8. The time now is 02:51 AM.

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