| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Add random image as background - works in Safari only... | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() Hi, I've added some script to randomly display one of 3 images on my homepage, but I've set it to display in the background of a table so that if the window is resized it just shows more or less of the image.
For some reason it only displays correctly in Safari on Mac. I've tested on Firefox, Opera, Netscape & Explorer on PC and Mac and none of these display correctly. The code for the table (in /customer/main/welcome.tpl) is: Code:
And the CSS style I've attached to the table is: Code:
Can anyone see why it won't display in most browsers?? If I have the image display directly in the table it works in all browsers but it stretches the screen to the size of the image which I don't want. That code is: Code:
Thanks for any help!! - I have asked this one before but had no replies ![]()
__________________
Danny - Photoscope Б─╒ X-Cart Version 4.0.14 |
|||||||
#2
|
|||||||
|
|||||||
![]() Have you tried setting the background image using CSS? The way you are using is not valid html anymore
![]()
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
|
|||
X-Cart forums © 2001-2020
|