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

Background image works in Firefox but not IE

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #21  
Old 09-08-2007, 09:26 AM
 
MoonDog MoonDog is offline
 

Advanced Member
  
Join Date: Aug 2007
Posts: 93
 

Default Re: Background image works in Firefox but not IE

Have you tried this(without the background-repeat: no-repeat; line:

Code:
} HTML,BODY{ background-image: url(images/man7.jpg); background-attachment: fixed; MARGIN: 0px; PADDING: 0px; }


- MoonDog -
__________________
X-CART Gold v4.1.8
Reply With Quote
  #22  
Old 09-08-2007, 09:30 AM
 
geckoday geckoday is offline
 

X-Wizard
  
Join Date: Aug 2005
Posts: 1,073
 

Default Re: Background image works in Firefox but not IE

Quote:
Originally Posted by a1deano
Hi geckoday

Thanks for your help ive tried what you said above but still no joy, i removed the BODY so it know looks like this.

And added the font family etc to the body defination as you said, presuming ive done it correct, so it looks like this



Still hasn't fixed the problem unfortuantly, appreciate your help.

Regards Dean
Sorry, I had made two changes in my testing and forgot. Moving the font-family, etc. isn't needed. The real problem is the HTML,BODY{ needs to be just BODY{
__________________
Manuka Bay Company
X-Cart Version 4.0.19 [Linux]

UGG Boots and other fine sheepskin products
http://www.snowriver.com
Reply With Quote
  #23  
Old 09-08-2007, 10:31 AM
  a1deano's Avatar 
a1deano a1deano is offline
 

X-Adept
  
Join Date: Oct 2004
Posts: 745
 

Default Re: Background image works in Firefox but not IE

Hi Guys

Well i first tried removing the line
Quote:
background-repeat: no-repeat;

Still no joy with that.

Also removed Family font etc so my code looks like this know
Quote:
BODY{
background-image: url(images/man7.jpg);
background-repeat: no-repeat;
background-attachment: fixed;
MARGIN: 0px;
PADDING: 0px;
}

But still no joy with this either, what a mind boggler this one is specialy since there isn't a problem with version 4.0.19

Thanks again Guys Dean
__________________
--------------
V4.6.1
xcartmods - Reboot Template

X-cart - X-PDF

Altered Cart - Checkout one
Reply With Quote
  #24  
Old 09-08-2007, 05:09 PM
 
geckoday geckoday is offline
 

X-Wizard
  
Join Date: Aug 2005
Posts: 1,073
 

Default Re: Background image works in Firefox but not IE

Quote:
Originally Posted by a1deano
Hi Guys

Well i first tried removing the line


Still no joy with that.

Also removed Family font etc so my code looks like this know


But still no joy with this either, what a mind boggler this one is specialy since there isn't a problem with version 4.0.19

Thanks again Guys Dean
Ugh. Its acting a bit flakey. That change works sometimes on my machine with a local copy of your home page. It seems to work consistently with the DOCTYPE line removed from the HTML. Not sure if that will break any of the new X-Cart HTML in 4.1 though.
__________________
Manuka Bay Company
X-Cart Version 4.0.19 [Linux]

UGG Boots and other fine sheepskin products
http://www.snowriver.com
Reply With Quote
  #25  
Old 09-09-2007, 02:01 AM
  a1deano's Avatar 
a1deano a1deano is offline
 

X-Adept
  
Join Date: Oct 2004
Posts: 745
 

Default Re: Background image works in Firefox but not IE

Hi geckoday

Thanks for that i removed the lines

Quote:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1//DTD/xhtml1-transitional.dtd">

from my /customer/home.tpl and yes it worked a charm seemed to do the trick, like you said though will it break any of the new X-Cart HTML in 4.1

I also changed my code slightly and removed
Quote:
background-repeat: no-repeat;

To
Quote:
background-repeat: repeat;

Ok you get 2 lots of background images scrolling up but better than seeing a sudden white area were the image ends, but not the real out come i wish for.

I'd definitely like help with information regarding the DOCTYPE as this made a big difference and the image worked as i wanted it to, but does it do harm to the new xcart 4.1 html etc

Thanks again for you help, really appreciated..
__________________
--------------
V4.6.1
xcartmods - Reboot Template

X-cart - X-PDF

Altered Cart - Checkout one
Reply With Quote
  #26  
Old 09-09-2007, 02:49 AM
  a1deano's Avatar 
a1deano a1deano is offline
 

X-Adept
  
Join Date: Oct 2004
Posts: 745
 

Default Re: Background image works in Firefox but not IE

Hi Guys

Ok something strange ive just found out by accident, the image doesn't work correctly on my main home page and scrolls up which i don't want it to, BUT if you click on a catergory the image works and remains fixed whilst you can scroll up and down, ive also checked this out through checkout and it all works perfect.

So for some reason it just doesn't want to work on the main front home page !!
If worse came to worse i could change my code to say -

background-repeat: repeat;

At least this would only effect my front page and i don't think to many people would notice the double image as the scroll down etc, could someone just confirm that they are getting the same effect as me if they click on a catagory the image remains fixed...

Iam noticing as well when you click away from the home page i.e on a catergory or view cart etc, on the bottom left iam getting the yellow triange
"error on page" can you guys confirm this for me please....

Again guys you've been so much help, cheers to all....
__________________
--------------
V4.6.1
xcartmods - Reboot Template

X-cart - X-PDF

Altered Cart - Checkout one
Reply With Quote
  #27  
Old 09-09-2007, 11:43 AM
  a1deano's Avatar 
a1deano a1deano is offline
 

X-Adept
  
Join Date: Oct 2004
Posts: 745
 

Default Re: Background image works in Firefox but not IE

managed to clear the yellow triangle "error on page" was something i'd done wrong
__________________
--------------
V4.6.1
xcartmods - Reboot Template

X-cart - X-PDF

Altered Cart - Checkout one
Reply With Quote
  #28  
Old 09-09-2007, 03:04 PM
 
MoonDog MoonDog is offline
 

Advanced Member
  
Join Date: Aug 2007
Posts: 93
 

Default Re: Background image works in Firefox but not IE

a1deano,

The source view of your home page shows two open <body> and two closing </body> tags. This might also cause the scrolling problem, because 'background' was an attribute of the body tag.
I viewed the source of a couple of products files from the category menu, it shows them all having one set of body tags. And these pages seems to working OK (no scrolling problem).

Now, when you go to your regular site (not the testsite) and you view the source file of the homepage, it actually shows three opening <body> tags and only two closing </body> tags. And yet, this page seems to be working OK and does not have the scrolling problem.

Out of curiosity, place an extra <body> tag right before this line of code that's on your problem site:

Code:
<body onload=runSlideShow() bgcolor=>

just to see if the problem goes away. This is bad programming practice, but it's a start to see where the problem might be, and just correct it from there if it was the problem.

I'm really curious to know what might be causing this problem.

- MoonDog -
__________________
X-CART Gold v4.1.8
Reply With Quote
  #29  
Old 09-10-2007, 01:10 PM
  a1deano's Avatar 
a1deano a1deano is offline
 

X-Adept
  
Join Date: Oct 2004
Posts: 745
 

Default Re: Background image works in Firefox but not IE

Hi moondog

many thanks for your message, i tried adding anothing another <body> but still no joy on that
one either, thanks anyway

Dean
__________________
--------------
V4.6.1
xcartmods - Reboot Template

X-cart - X-PDF

Altered Cart - Checkout one
Reply With Quote
  #30  
Old 09-15-2007, 03:22 PM
  a1deano's Avatar 
a1deano a1deano is offline
 

X-Adept
  
Join Date: Oct 2004
Posts: 745
 

Default Re: Background image works in Firefox but not IE

Hi all well ive just removed the line
Quote:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
and know the image is remaining fixed in IE 6 as i wanted.

What i need to know by removing the DOCTYPE will this effect the running of xcart.

Many thanks Dean
__________________
--------------
V4.6.1
xcartmods - Reboot Template

X-cart - X-PDF

Altered Cart - Checkout one
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:26 PM.

   

 
X-Cart forums © 2001-2020