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

MSIE/Firefox CSS issue

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 11-03-2005, 02:13 PM
 
SellPro SellPro is offline
 

Newbie
  
Join Date: Oct 2005
Posts: 6
 

Default MSIE/Firefox CSS issue

I have a gradient background outside the actual content of our site. I have the background color set to the darkest part of the gradient, and it tiles horizontally so that it appears seamless. The problem I have is that on our main pages outside of the store directory, it shows up fine in both Internet Explorer and Firefox. However, once in the store directory, the background color shows up in MSIE but not Firefox.

The CSS in the store:
Code:
BODY { FONT-FAMILY: Verdana, Arial, Helvetica, Sans-serif; COLOR: #550000; FONT-SIZE: 10px; BACKGROUND-IMAGE: url("http://www.sellproinc.com/images/gradient.jpg"); BACKGROUND-COLOR: #6498FE; BACKGROUND-REPEAT: repeat-x; }

The CSS on the main pages:
Code:
body { background-image: url("images/gradient.jpg"); background-color: #6498FE; background-repeat: repeat-x; font-family: arial; font size: 10px; color: #000; }

Pretty much the same. With Firefox gaining a larger percentage of the browsing populace, I want to make sure the site looks good in both.
__________________
Version 4.0.16
Reply With Quote
  #2  
Old 11-03-2005, 02:21 PM
 
SellPro SellPro is offline
 

Newbie
  
Join Date: Oct 2005
Posts: 6
 

Default

Okay, disregard some of that. It doesn't show the background color in either browser.
__________________
Version 4.0.16
Reply With Quote
  #3  
Old 11-03-2005, 02:24 PM
 
balinor balinor is offline
 

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

Default

Try getting rid of the quotes in your background image name callout and the hard link....it could be breaking the stylesheet. Just use (images/imagename.jpg)
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #4  
Old 11-03-2005, 03:05 PM
  TelaFirma's Avatar 
TelaFirma TelaFirma is offline
 

X-Adept
  
Join Date: Nov 2002
Location: North Carolina USA
Posts: 930
 

Default

Actually if you use the code:

Code:
background-image: url(images/gradient.jpg);

it will pull it from the /skin1/images/ directory becuase it is a relative link and the CSS file is loading from that directory.

If your image is truely located at http://www.sellproinc.com/images/gradient.jpg then you need to use the code:

Code:
background-image: url(/images/gradient.jpg);

so that it will look for the image in the directory off of the root
Reply With Quote
  #5  
Old 11-03-2005, 03:06 PM
 
balinor balinor is offline
 

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

Default

Sorry, should have clarified that.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #6  
Old 11-03-2005, 03:59 PM
  TelaFirma's Avatar 
TelaFirma TelaFirma is offline
 

X-Adept
  
Join Date: Nov 2002
Location: North Carolina USA
Posts: 930
 

Default

Quote:
Originally Posted by balinor
Sorry, should have clarified that.

NP.. hope I didn't come across as a smart ass when replying.. got a bit of a migrain today and sometimes I am less than "personable" when like that.
Reply With Quote
  #7  
Old 11-04-2005, 07:49 AM
 
SellPro SellPro is offline
 

Newbie
  
Join Date: Oct 2005
Posts: 6
 

Default

Rereading my posts, I guess I wasn't exactly clear. The image shows up and tiles correctly, but the background color doesn't show up. I don't know why the same CSS would have a different effect in different places.
__________________
Version 4.0.16
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 10:25 AM.

   

 
X-Cart forums © 2001-2020