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

Background image not showing in Firefox, but looks ok in IE

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 06-26-2008, 04:44 AM
 
VWD VWD is offline
 

Member
  
Join Date: Oct 2004
Location: Sweden
Posts: 25
 

Unhappy Background image not showing in Firefox, but looks ok in IE

Hi there, this is my first post to this forum.
I hope someone here can help me with this little problem.
My homepage looks ok in Internet Explorer, but looks goofy in Firefox 3, problem is I added an background image in Skin1.css, looking like this:

}
HTML,BODY
{
HEIGHT: 100%;
MARGIN: 0px;
PADDING: 0px;
BACKGROUND-COLOR: #000000

}
BODY {background: url(images/homepage01.jpg);
}

The idea is that the image is to show over the whole page like it does in IE, but when using Firefox, it only shows the background image halfway over the pages.

Anyone plz help.
Thnx VWD
__________________
X-Cart Version: 4.4.5 GOLD
Reply With Quote
  #2  
Old 06-26-2008, 04:54 AM
  Yurij's Avatar 
Yurij Yurij is offline
Banned
 

X-Adept
  
Join Date: Jan 2008
Posts: 486
 

Default Re: Background image not showing in Firefox, but looks ok in IE

Quote:
Originally Posted by VWD
Hi there, this is my first post to this forum.
I hope someone here can help me with this little problem.
My homepage looks ok in Internet Explorer, but looks goofy in Firefox 3, problem is I added an background image in Skin1.css, looking like this:

HTML,BODY
{
HEIGHT: 100%;
MARGIN: 0px;
PADDING: 0px;
BACKGROUND-COLOR: #000000;
}
BODY
{
background-image: url(images/homepage01.jpg);
background-position: top left;
}

The idea is that the image is to show over the whole page like it does in IE, but when using Firefox, it only shows the background image halfway over the pages.

Anyone plz help.
Thnx VWD


Try use this code:

PHP Code:
HTMLBODY
{
    
HEIGHT100%;
    
MARGIN0px;
    
PADDING0px;
    
BACKGROUND-COLOR#000000;
               
}
BODY 
{
    
background-imageurl(images/homepage01.jpg);
    
background-positiontop left;


If that does not help, give a link to your site.
Reply With Quote
  #3  
Old 06-26-2008, 05:02 AM
 
VWD VWD is offline
 

Member
  
Join Date: Oct 2004
Location: Sweden
Posts: 25
 

Default Re: Background image not showing in Firefox, but looks ok in IE

Thank you, but it didn╢t solve my problem.

Here is the link:

http://www.bbtech.se/home.php
__________________
X-Cart Version: 4.4.5 GOLD
Reply With Quote
  #4  
Old 06-26-2008, 05:04 AM
 
balinor balinor is offline
 

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

Default Re: Background image not showing in Firefox, but looks ok in IE

You need to tell the background to repeat:

background-repeat: repeat-y;
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #5  
Old 06-26-2008, 05:15 AM
 
VWD VWD is offline
 

Member
  
Join Date: Oct 2004
Location: Sweden
Posts: 25
 

Default Re: Background image not showing in Firefox, but looks ok in IE

Thank you very much Balinor, it solved my problem
__________________
X-Cart Version: 4.4.5 GOLD
Reply With Quote
  #6  
Old 06-26-2008, 05:48 AM
  Yurij's Avatar 
Yurij Yurij is offline
Banned
 

X-Adept
  
Join Date: Jan 2008
Posts: 486
 

Default Re: Background image not showing in Firefox, but looks ok in IE

Quote:
Originally Posted by VWD
Thank you very much Balinor, it solved my problem

I would have done so (without background repeat):

PHP Code:
HTMLBODY
{
    
HEIGHT100%;
    
MARGIN0px;
    
PADDING0px;
    
BACKGROUND-COLOR#60615b;
               
}
BODY 
{
    
background-imageurl(images/homepage01.jpg);
    
background-positiontop left;
    
background-repeatno-repeat;

Reply With Quote
  #7  
Old 06-30-2008, 02:13 AM
 
VWD VWD is offline
 

Member
  
Join Date: Oct 2004
Location: Sweden
Posts: 25
 

Default Re: Background image not showing in Firefox, but looks ok in IE

Thanks to both of you, it works either way.
But If I put the code underneath the image, it doesn╢t work.

//Working code
}
HTML,BODY
{
HEIGHT: 100%;
MARGIN: 0px;
PADDING: 0px;
BACKGROUND-COLOR: #FFFFFF
background-repeat: no-repeat; // or background-repeat: repeat-y;

}
BODY {background: url(images/homepage01.jpg);
}
FORM {
MARGIN: 0px;
}
__________________
X-Cart Version: 4.4.5 GOLD
Reply With Quote
  #8  
Old 06-30-2008, 02:33 AM
  Yurij's Avatar 
Yurij Yurij is offline
Banned
 

X-Adept
  
Join Date: Jan 2008
Posts: 486
 

Default Re: Background image not showing in Firefox, but looks ok in IE

Quote:
Originally Posted by VWD
Thanks to both of you, it works either way.
But If I put the code underneath the image, it doesn╢t work.

//Working code
}
HTML,BODY
{
HEIGHT: 100%;
MARGIN: 0px;
PADDING: 0px;
BACKGROUND-COLOR: #FFFFFF
background-repeat: no-repeat; // or background-repeat: repeat-y;

}
BODY {background: url(images/homepage01.jpg);
}
FORM {
MARGIN: 0px;
}


!!!!!!!!!!!!!!!!!

BACKGROUND-COLOR: #FFFFFF;

background-image: url(images/homepage01.jpg);
Reply With Quote
  #9  
Old 06-30-2008, 05:44 AM
 
VWD VWD is offline
 

Member
  
Join Date: Oct 2004
Location: Sweden
Posts: 25
 

Default Re: Background image not showing in Firefox, but looks ok in IE

Ok, thank you, tried it, but for some reason doesn╢t work for me, firefox looks funny when I add -image to background. So I╢m sticking with the code I have already. Thank you for your help, we can close this thread now.
__________________
X-Cart Version: 4.4.5 GOLD
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:54 PM.

   

 
X-Cart forums © 2001-2020