2

I'm trying to make a box shadow for a div with a dynamic height. which works fine with

filter: progid:DXImageTransform.Microsoft.Shadow(color='#78000a', Direction=180, Strength=15)

But only if a specific height is set. But I want a shadow also on an dynamic height. Is this possible? I also tried min-height but doesn't work.

Jason Aller
  • 3,541
  • 28
  • 38
  • 38
fehrlich
  • 2,497
  • 2
  • 26
  • 44

2 Answers2

0

Stuff like this is often down to the hasLayout issue in IE.

No guarantees, but try giving the element in question the zoom: 1 CSS property. This is a IE-only hack to give an element layout.

Community
  • 1
  • 1
Pekka
  • 442,112
  • 142
  • 972
  • 1,088
0

Not sure why, but apparently it often helps if you add

zoom:1;

to the div's css.

http://jsfiddle.net/wXNRc/2/

(example is IE-only)

Stephan Muller
  • 27,018
  • 16
  • 85
  • 126