[thelist] IE 7 CSS opacity

ben morrison morrison.ben at gmail.com
Wed Oct 11 11:34:30 CDT 2006


Just started testing on IE7 and came across an odd rendering of opacity

http://html.eval.poptech.coop/ben/opacity.html

Works fine in IE6

Using simple filter:

	.advert dt {
		background:#ccf;
		opacity:.8;
		filter: alpha(opacity=80);
		font-size:2em;
	}

I could make png files, but would rather keep the code simple as there
are a lot of colours we are using in production - and would rather
keep colour changes in the CSS.

Have googled, but cant find much apart from all the talk of PNGs, did
see one example but that was using absolute positioning [1] - which i
would rather avoid if I can.

thanks, ben.

[1] http://www.cssplay.co.uk/opacity/png.html
-- 
Ben Morrison



More information about the thelist mailing list