Monthly Archives: July 2012

Opacity for Internet Explorer

Posted by & filed under Odds.

If you want opacity to work in IE versions < 9, the order should be: -ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=0)"; // first! filter: alpha(opacity=0); // second! The first line is for IE8, the second for IE5-7. Link: http://www.quirksmode.org/css/opacity.html

SASS and LESS

Posted by & filed under Odds.

Sass and Less allow you to be more programmatic about your CSS by introducing variable, conditional operators and basic if-for-each logic (Sass only for the latter, at the moment anyway.) I had a few problems setting up Sass on my PC, but that was more to do with me rushing without reading. I’m sure no… Read more »

PHP extract()

Posted by & filed under PHP.

You shouldn’t use this function on untrusted data, but if you clean it up – and know what the expected variables will be called – this is a handy function. Here an example $_POST: First clean the input: Now extract the key-value pairs into varname-values: There’s a pile of constants that control behaviour in case… Read more »