Is opacity: .5 equals opacity:0.5 for all browsers?
Also i have saw some developers using this on rgb/rgba styles like the following
background-color:rgba(255,0,0, .3); instead background-color:rgba(255,0,0, 0.3);
I tried to use this for other styles like height: .5em instead of height: 0.5em and it works.
Anyway my question is about how valid is this markup and is there any chance some browsers (like ie) NOT to understand that and crush the site.
10x in advance!
Is opacity: .5 equals opacity:0.5 for all browsers? Also i have saw some developers using this on rgb/rgba styles like the following background-color:rgba(255,0,0, .3); instead background-color:rgba(255,0,0, 0.3);
I tried to use this for other styles like height: .5em instead of height: 0.5em and it works. Anyway my question is about how valid is this markup and is there any chance some browsers (like ie) NOT to understand that and crush the site. 10x in advance!
I believe IE (below 9) won't recognize rgba but there might be an IE specific filter to do the same thing.
http://css-tricks.com/snippets/css/cross-browser-opacity/
@redhornet It is always okay—and perfectly valid—to use
.5instead of0.5, etc.10x joshuanhibbert, that was what I asking for