0

I want to add multiple background image using css for my site.I use this code.

#container{
 margin:0 auto;
 width:1154px;
 background:url(../img/background-top-new.jpg) no-repeat, url(../img/background-middle.jpg) repeat-y;
 height:auto;
}

I face this problem in ie. If you have any solution for this problem please give me any solution.

Soufiane Hassou
17.8k2 gold badges42 silver badges76 bronze badges
asked Nov 2, 2010 at 12:34

3 Answers 3

1

Multiple background images is a CSS3 feature, which means it is only supported by the latest versions of Firefox, Chrome, Safari and Opera.

You may be able to reproduce the same effect in IE though, but you will have to do it with multiple divs (1 background/div)

answered Nov 2, 2010 at 12:40
Sign up to request clarification or add additional context in comments.

Comments

0

IE doesn't currently support multiple background images (except for IE9). There is a workaround using DirectX filters that allows you to specify 2 backgrounds but it's far from being optimal: http://cookbooks.adobe.com/post_Cross_Browser_Multi_background_images__including_I-16839.html

The most portable solution is to create multiple divs and stack them in layers.

answered Nov 2, 2010 at 12:42

Comments

0
answered Nov 2, 2010 at 12:43

Comments

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.