By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,521 Members | 1,222 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,521 IT Pros & Developers. It's quick & easy.

Two background images in IE 8

KeredDrahcir
100+
P: 426
I need to give a division tow background images. I found tha it could give it two background images and it works in Firefox, Safri, Opera and Google Chrome but not in IE 8. I have found it works in IE9 but is there a way to give a division two background images in IE 8, 7 & 6?

The CSS code I'm using is:
Expand|Select|Wrap|Line Numbers
  1. background-image: url(../images/box-top.jpg), url(../images/box-middle.jpg);
  2. background-repeat: no-repeat, repeat-y;
  3. background-position: top center, center center;
May 6 '11 #1

✓ answered by JKing

I still may be possible using absolute positioning but again I would need to see an image of the design to give you more direction.

Share this Question
Share on Google+
7 Replies


drhowarddrfine
Expert 5K+
P: 7,435
You can never expect modern options such as this to work in IE. At a minimum, it takes IE 3 years to catch up to modern browsers and, typically, 10 years or more.
May 6 '11 #2

KeredDrahcir
100+
P: 426
I didn't expect IE to be able to do it that way but is there another way to do it while we wait for the rest of the world to upgrade to IE9?
May 6 '11 #3

drhowarddrfine
Expert 5K+
P: 7,435
IE9 is a sideways move, not an upgrade. Moving to any other browser is an upgrade.

No. There is no other way.
May 6 '11 #4

KeredDrahcir
100+
P: 426
Are they any other options? I can't think of another way to do this.
May 6 '11 #5

JKing
Expert 100+
P: 1,206
Without seeing the design you are trying to achieve it is difficult to offer a proper solution.

However it is likely that what you want can be achieved by using two divs.
May 6 '11 #6

KeredDrahcir
100+
P: 426
I thought of using two divs but the content had to flow out of one and into the other.
May 6 '11 #7

JKing
Expert 100+
P: 1,206
I still may be possible using absolute positioning but again I would need to see an image of the design to give you more direction.
May 6 '11 #8

Post your reply

Sign in to post your reply or Sign up for a free account.