Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

CSS

flexible div background images?

Still mad at: http://emendationslist.com/rsllab/lab.html - but this is much more of a mind-bender for me.

now the issue is that the background image won't cover the entire div 9the three different color ones in a row) -- the images ARE larger than the max size of the div. YET - the orange (first) and blue (last) don;t work in IE - they work just fine in firefox and in chrome. the have to also work in IE

i have tried background-size: contain; and background-size: cover; -- neither work.

What i want is for the background image to flex with the div. if it won't - i'll do the whole thing with CSS (usually preferable) but in this case i was trying to avoid it.

1 Answer

A wonderful treehouser found the fix for me! http://msdn.microsoft.com/en-us/library/ie/jj127316(v=vs.85).aspx