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

Adding background image in CSS file?
 
Reply
   X-Cart forums > X-Cart 4 > Changing design
 
Thread Tools Search this Thread
  #1  
Old 10-11-2002, 10:59 PM
 
Anonymous Anonymous is offline
 

eXpert
  
Join Date: Sep 2002
Posts: 222
 

Default Adding background image in CSS file?

Hi, I'm having trouble using an image for the main background and in tables.
I'm using something similiar to this in skin1.css:

.background {
background-image: url(http://www.mywebsite/images/blah.gif);
}

but that doesn't seem to work. i've tried adding quotes, switching between absolutes and relative links, this and that. i can change the background colors just find for tables and the main document, but how do i use an image as a background? it works if i go in directly into the particular page and put the html in for the element i want to have an image background, but i would prefer to do this in the style sheet and save myself a lot of work. any help would be great!
Reply With Quote
  #2  
Old 10-12-2002, 05:50 PM
 
syddos syddos is offline
 

eXpert
  
Join Date: Sep 2002
Location: London, England, UK
Posts: 258
 

Default

Hi

looking at the code I notice that the xcart directory is not included, is this a typing error?

If not the url should read:

www.your_website/xcart_directory/images/blah.gif

Regards,
__________________
Syddos

Nothing is impossible, We just don't know how to do it ........Yet!

Xcart 4.1.X PRO (Testing Platform: winXP Pro)
Perl 5.8.7 (win32)
WINAMP 1.6.3 (win32 server package. Includes the following)
- phpMyAdmin v2.8.03
- MySql 5.0.21
- Apache 2.0.55 (win32)
- php 5.1.4
- SQLitemanager 1.2.0
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > 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 11:35 PM.

   

 
X-Cart forums © 2001-2018