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

Changing backround color with a gif or jpeg image

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 05-22-2005, 04:08 PM
  shipmerchant's Avatar 
shipmerchant shipmerchant is offline
 

eXpert
  
Join Date: Mar 2005
Posts: 361
 

Default Changing backround color with a gif or jpeg image

Hi Xcart experts,

I am trying to change the background colors for the headline and the bottom horizontal bar of the page( dont know the name or its location).

I know the headline can be changed in the skin.css, for example:

.Headline {
BACKGROUND-Color: #D6D7D9

1. but dont know where to change the color for the bottom horizontal bar, which displays the copyright.

2. Also can these colors be changed with using a transparent gif file?

If so how would I code that? Here is what I am thinkin of trying:
.Headline {
BACKGROUND-Color: style=background: url({$ImagesDir}/image_name.gif)">

Any help would be appreciated:


__________________
Mil Mascaras
Live Xcart Site #1-V- 4.1.8
Live Xcart site # 2-V 4.4.3
CDSEO Mod - Firetank MM30 - 7DANA- The bestTemplates!
Linux - EWD Host Servers awesome service!
AlteredCart One Page Checkout
Reply With Quote
  #2  
Old 05-23-2005, 03:20 AM
 
ian_fs ian_fs is offline
 

Advanced Member
  
Join Date: Apr 2004
Location: Norwich, UK
Posts: 86
 

Default

I assume you are refering to the css file.

To use images in css, you must use the full file name as it cant run the Smarty code as it is not PHP.

.Headline {
BACKGROUND: #FFFFFF url(http://www.yourwebsitename.com/xcartfolder/imagefolder/image_name.gif);
}

What I have done there is say for the background, is going to be coloured white, refering to #FFFFFF. But after that I have put in the location to your image.

Depending on the area size of .Headline and the size of your image, if your image is coloured red for example and was smaller than the area size of .Headline, then you would also see some white.

You can also repeat your image so it filled the entire .Headline area:

.Headline {
BACKGROUND: #FFFFFF url(http://www.yourwebsitename.com/xcartfolder/imagefolder/image_name.gif) repeat;
}

Also you can align the image:

.Headline {
BACKGROUND: #FFFFFF url(http://www.yourwebsitename.com/xcartfolder/imagefolder/image_name.gif) top right no-repeat;
}

That would place the image to the top right of .Headline but there would be no repeat.

And if your image was transparent, what ever colour you set the background to would be displayed:

.Headline {
BACKGROUND: #003366 url(http://www.yourwebsitename.com/xcartfolder/imagefolder/transparent_image_name.gif) top right no-repeat;
}

In that example your transparent would be displayed but you would see blue.

Hope that helps.
__________________
X-Cart 4.0.17
Reply With Quote
  #3  
Old 05-23-2005, 08:28 AM
 
balinor balinor is offline
 

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

Default

Post moved, please be aware of where you post. As the name implies, the Completed Custom Mods forum is for posting completed mods only, not questions. Thanks
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #4  
Old 05-23-2005, 03:11 PM
  shipmerchant's Avatar 
shipmerchant shipmerchant is offline
 

eXpert
  
Join Date: Mar 2005
Posts: 361
 

Default Many thanks

Dear Ian_fs,

Many thanks for the detailed instructions. I will definetly give it shot to see what happens.

I really appreciate it.


Balinor, sorry was too early for me, failed to notice this was going to the wrong section.
__________________
Mil Mascaras
Live Xcart Site #1-V- 4.1.8
Live Xcart site # 2-V 4.4.3
CDSEO Mod - Firetank MM30 - 7DANA- The bestTemplates!
Linux - EWD Host Servers awesome service!
AlteredCart One Page Checkout
Reply With Quote
  #5  
Old 05-25-2005, 08:17 AM
 
snorocket snorocket is offline
 

X-Adept
  
Join Date: Dec 2002
Posts: 403
 

Default Re: Changing backround color with a gif or jpeg image

Quote:
Originally Posted by shipmerchant
1. but dont know where to change the color for the bottom horizontal bar, which displays the copyright.

You probably figured this out by now but you can change and put a background image in the copyright area as shown below, notice I also put NOTES in my CSS to help me:

Quote:
Originally Posted by snorocket
/* COPYRIGHT AT BOTTOM OF PAGE */
.Bottom {
BACKGROUND-COLOR: #FFFFFF; COLOR: #000000;
BACKGROUND: URL(images/bgimage.gif);
}

and also:

Quote:
Originally Posted by snorocket
upload the image into the /skin1/images/bgimage.gif directory, anyways probably too late but just thought I'd post to quickly help others.

Just an FYI for problems i ran into was using full paths did not work for me, again smarty variables do not work, and also another weird problem I had that I never figired out was .jpg images would show up missing, switched the image to a .gif and it worked
Reply With Quote
  #6  
Old 05-28-2005, 01:45 PM
  shipmerchant's Avatar 
shipmerchant shipmerchant is offline
 

eXpert
  
Join Date: Mar 2005
Posts: 361
 

Default Many thanks to all who answered

Thanks to those that answered, I will try your suggertions out.
Its appreciated!
__________________
Mil Mascaras
Live Xcart Site #1-V- 4.1.8
Live Xcart site # 2-V 4.4.3
CDSEO Mod - Firetank MM30 - 7DANA- The bestTemplates!
Linux - EWD Host Servers awesome service!
AlteredCart One Page Checkout
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 06:24 AM.

   

 
X-Cart forums © 2001-2020