Easy-to-apply, dynamic, auto-expanding drop shadows have always been a bit of a pain to apply across all the major browsers. We fairly recently got the box-shadow attribute, which can be applied with -moz-box-shadow and -webkit-box-shadow on gecko and webkit browsers. But it leaves the IE family out in the cold.
The easiest solution to the is the IE-proprietary filter attribute. It does not producte quite as nice shadows as the box-shadow attribute, but for simple just-a-few-pixels drop shadows it does the trick. One noticeable drawback is that IE for some reason disables anti-aliasing on elements that has this attribute. But I can live with that in most cases.
.shadow {
zoom:1; /* This enables hasLayout, which is required for older IE browsers */
filter: progid:DXImageTransform.Microsoft.Shadow(color='#b0b0b0', Direction=135, Strength=3);
-moz-box-shadow:2px 2px 2px #b0b0b0;
-webkit-box-shadow:2px 2px 2px #b0b0b0;
box-shadow:2px 2px 2px #b0b0b0;
}
This should look fairly similar in all major browsers, including IE 6+
Tags: css, dropshadow, IE hacks, Web development
how to make “inset” effect in IE?
I’m not entirely sure what you mean by “inset” effect. Could you be more specific?
Thanks for that–I was almost going to give up on getting IE to play nice
thanks a lot. u save my life. nice and work as expected.
is there a way to put a drop shadow with x and y axis at zero? so that there is a light shadow around the entire image?
Yes, this is possible with CSS3, have a look here: http://www.css3.info/preview/box-shadow/
Don’t know about IE though.
Here the example foe IE shadow effect http://discoverweb.info/css-shadow-for-ie.html
Please drop/stop CSS hacks for IE8 or lower. When it is looking ‘basic’ who cares, user must upgrade or use another better browser, it’s free!
Focus on other better browsers and IE9.
Can I buy an unlocked iphone 4 from the apple online store and ask to deliver it in a hotel? I found an iphone4, i cannot turn it on as it has a pin code. I have advertised the found phone for 3 months and no-one has come forward. How can i unlock the phone without knowing the pin ???
Exactly about how to unlock iphone 4 4.3 how to unlock an iphone 3gs Info about how to unlock an iphone 3gs 4.1
I took 1 st credit loans when I was not very old and it helped my business a lot. Nevertheless, I require the financial loan once more time.
Find out more about how to unlock your iphone for free how to unlock iphone 4 4.2.1 firmware You could potentially unlock iPhone 4 if you’re not fully happy with the help offered a person’s iPhone service. To take care of the following available, you will don�t will have to be technological understanding. Using the major search engines, you
You may unlock iPhone 4 discover total happy with the help accessible your individual iPhone issuer. To sling the outside, you don�t have to be support talents. Thanks to yahoo and bing, there are effective content and also videos for you to acquire how to unlock apple iphone
Are you Find out how to unlock iphone 3gs 4.3 unlock 3g iphone You possibly can unlock iPhone 4 discover properly happy about the representation which are available from your own personal iPhone specialist. To include this situation finally out, a person don�t are computer talents. With the help of engines like
You are able to unlock iPhone 4 if you’re not very well happy about the representation available at your main iPhone service. To transport doing this finally out, a person don�t must know-how savvy. Thanks to yahoo and bing, you will discover useful unlock iphone 4 free software download