I don't understand, filter: alpha(opacity=60); always worked be for. Did IE7 drop support for opacity or something? This is for frustrating.
EDIT: found out that I need to float the element in order to set the opacity in IE. What? That's retarted! Isn't there a way around this?
Opacity not working in IE.
Moderator: General Moderators
- superdezign
- DevNet Master
- Posts: 4135
- Joined: Sat Jan 20, 2007 11:06 pm
Re: Opacity not working in IE.
It's an issue of the 'hasLayout' property. There are many ways to give an element hasLayout, floating being one of them. You can also do it with position: absolute, giving the element a set width or height, using display: inline-block, using IE's 'zoom' property, or using IE's 'writing-mode' property. The two last options don't validate and are IE-only.
Check the MSDN database for hasLayout documents for more information.
Check the MSDN database for hasLayout documents for more information.
Re: Opacity not working in IE.
AlRight, Thanks!superdezign wrote:It's an issue of the 'hasLayout' property. There are many ways to give an element hasLayout, floating being one of them. You can also do it with position: absolute, giving the element a set width or height, using display: inline-block, using IE's 'zoom' property, or using IE's 'writing-mode' property. The two last options don't validate and are IE-only.
Check the MSDN database for hasLayout documents for more information.
- JAB Creations
- DevNet Resident
- Posts: 2341
- Joined: Thu Jan 13, 2005 6:44 pm
- Location: Sarasota Florida
- Contact:
I use this in an Internet Explorer Conditional Comments Style Sheet on http://www.jabcreations.net/ when needing to bring someone's attention to a prompt...
Code: Select all
.fade {
filter: alpha(opacity=10);
}