# IE7 CSS - if comment blues

**URL:** <https://forum.kirupa.com/t/ie7-css-if-comment-blues/211316>\
**Category:** web dev\
**Created:** [December 29, 2006, 8:45pm UTC](https://forum.kirupa.com/t/ie7-css-if-comment-blues/211316 "2006-12-29T20:45:37Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![East\_High](https://avatars.discourse-cdn.com/v4/letter/e/6de8d8/32.png) [@East\_High](https://forum.kirupa.com/u/East_High)\
**Post date:** [December 29, 2006, 8:45pm UTC](https://forum.kirupa.com/t/ie7-css-if-comment-blues/211316/1 "2006-12-29T20:45:37Z")

</div>

I’m having trouble getting my CSS to work correctly in IE7. I’m using CSS to stretch an image within a div to create a scaling gradient background. The height of the box will be determined by its contents. It works fine in FF, but IE is choking (what’s new, eh?)

I tried an if IE 7 statement as a workaround, but the effects are limited.

Can someone here take a look for me? I’ve wasted most of my morning fooling with it. :hurt:

I’ve attached a zip file with the html and gradient .gif.

Thanks y’all.
