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

Adding background image

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 11-07-2013, 11:56 PM
 
fiberglass.supply fiberglass.supply is offline
 

Senior Member
  
Join Date: Dec 2012
Location: Florida
Posts: 171
 

Default Adding background image

how do I add a background image behind page container?
Reply With Quote
  #2  
Old 11-09-2013, 06:45 PM
  totaltec's Avatar 
totaltec totaltec is offline
 

X-Guru
  
Join Date: Jan 2007
Location: Louisville, KY USA
Posts: 5,823
 

Default Re: Adding background image

This simple question could easily open a whole can of worms.

Really depends on what skin you are using, and what you want the background image to do (repeat, stretch, center, etc.).

Lets say you are using ideal_comfort, and you want a repeating background image.

Code:
html, body{ background: #4fd6f0 url(http://www.freeimagehosting.net/newuploads/lgqjd.jpg) center top; }
This code also sets the background color.

I made you a quick playground where you can experiment: http://jsfiddle.net/JE3E8/1/
__________________
Mike White - Now Accepting new clients and projects! Work with the best, get a US based development team for just $125 an hour. Call 1-502-773-6454, email mike at babymonkeystudios.com, or skype b8bym0nkey

XcartGuru
X-cart Tutorials | X-cart 5 Tutorials

Check out the responsive template for X-cart.
Reply With Quote

The following user thanks totaltec for this useful post:
fiberglass.supply (11-09-2013)
  #3  
Old 11-09-2013, 08:44 PM
 
fiberglass.supply fiberglass.supply is offline
 

Senior Member
  
Join Date: Dec 2012
Location: Florida
Posts: 171
 

Default Re: Adding background image

I found the answer on another post but people were saying you cant do background image in html,body{} and that you would have to split the 2 or something like that, so thats why i still posted to see if there would be an easier answer, i did it in about 20 seconds with your response. it was so easy i should of just tried it. I work on a live site so sometimes i am worried of screwing things up especially because of my limited css knowledge. Getting more comfortable using and tweaking css with the help of firebug.

Thank you so much, I didnt do the background image but i did do backgroud color instead to keep page download time small, i also had to change page container in the middle to white. Looks great. I can't believe all the help i am getting on this forum from a few gurus out there.

Oh btw Totaltec, i ordered my barcode scanner today Hope your mod isnt going to cost a fortune, i checked out the one from bcs but even though the options are nice the look and feel isnt. waiting on yours to see what it is going to look like.
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 09:33 PM.

   

 
X-Cart forums © 2001-2020