Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

2 Background Images for 1 style class

Status
Not open for further replies.

ggeorgiou01

Programmer
Apr 11, 2005
60
GB
Hi all,

I have a style (see below) in a style sheet, this works fine, but what i also want to do is add another background image to the same style. But only the last image is being shown on my page !!!

How do i add 2 background images to the same style class ??

.Green
{
background-position: top right;
background-image: url(Images/CornerGreen.gif);
background-repeat: no-repeat;

background-position: top left;
background-image: url(Images/CornerGreenLeft.gif);
background-repeat: no-repeat;
}

Many thanks,

George
 
Multiple background images will be available in CSS3 but are not supported as of yet. Also, your code would be incorrect in applying two images. The way css works, your code should simply show the last image -- which it does.
 
Thanks you for your quick responses - guys...

So is there no possible way around this ???
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top