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)
-   -   Backgrounds (https://forum.x-cart.com/showthread.php?t=26543)

neroag 11-19-2006 03:09 AM

Re: Backgrounds
 
Do you mean the background colour on the header ??

ie in head.tpl

change ...
<TABLE border="0" cellpadding="0" cellspacing="0" width="100%">

to ...
<TABLE bgcolor="#FF0000" border="0" cellpadding="0" cellspacing="0" width="100%">

= Red Background

carpeperdiem 11-19-2006 04:13 AM

Re: Backgrounds
 
What I think you want is to change the background-color ABOVE the search line, yes?

There is more than one way to accomplish this...

one way (perhaps the easiest way) is to define a new class for the first <tr>

FIND
Code:

<TABLE border="0" cellpadding="0" cellspacing="0" width="100%">
<TR>
<TD width="4">&nbsp;</TD>
<TD><A href="{$http_location}"><IMG src="{$ImagesDir}/xlogo.gif" width="275" height="70" border="0"></A></TD>
<TD valign="top" align="right">
{if $usertype eq "C"}
{include file="customer/top_menu.tpl"}
{/if}
</TD></TR>
</TABLE>


REPLACE WITH
Code:

<TABLE border="0" cellpadding="0" cellspacing="0" width="100%">
<tr class="newheaderbackground">
<TD width="4">&nbsp;</TD>
<TD><A href="{$http_location}"><IMG src="{$ImagesDir}/xlogo.gif" width="275" height="70" border="0"></A></TD>
<TD valign="top" align="right">
{if $usertype eq "C"}
{include file="customer/top_menu.tpl"}
{/if}
</TD></TR>
</TABLE>


THEN -- add a class to your CSS (it can go anywhere):
Code:

.newheaderbackground {
    background-color: #ffffff;
}

(obviously replace ffffff with your intended background color)

This is CSS 101... if you're going to get deeper into xcart, you would benefit greatly by knowing some basic css and html. I encourage you to buy a book or read the many tutorials available on the net.

Good luck.

pnm 11-20-2006 12:29 AM

Re: Backgrounds
 
Thanks to both of you for your help.

Jeremy I have to admit, I've programmed in many languages, just not HTML but I'm learning.

So I have applied the new class, which makes it neater and easier for changes.

Thanks again for all your help


All times are GMT -8. The time now is 08:27 AM.

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