Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS opacity: 0 with visibility: hidden Reply To: opacity: 0 with visibility: hidden

#170726
__
Participant

You mean, any reason to use both? I don’t see any, no.

Note that visibility is a completely different concept than opacity, even in legacy IE. If you ever need legacy IE compatibility again, I would suggest using MS’s opacity filter instead:

/* IE 8 */
-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";

/* IE 5-7 */ 
filter: alpha(opacity=0);