Forum Moderators: not2easy

Message Too Old, No Replies

Background problem in css

calling two background images in css

         

abilash

5:38 am on May 31, 2007 (gmt 0)

10+ Year Member



Hi,

I am new to this forum. I want to call two background images in the same css class, one image as tiling and other simply as background image. Is it possible? can anyone help me out?

Thanks in advance...

Robin_reala

6:42 am on May 31, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Yes, but only in currently unreleased versions of Safari (probably not what you wanted to hear). CSS3's backgrounds and borders spec adds multiple background images but as far as I know there isn't a currently released browser that implements it.

For the time being you'll have to do the old trick of nesting multiple elements inside each other and assigning one background image to each.

abilash

8:39 am on May 31, 2007 (gmt 0)

10+ Year Member



Thanks for your information. I will try it out as you have said.