Snippets

Snippet #1: Cross-Browser Opacity

Posted on

Now for some snippets! Basically, just code that might be handy on a cheat sheet. Nothing complicated. This one will enable proper CSS opacity across all browsers (albeit with some caveats in Internet Explorer, which will behave slightly differently at times): selector { filter: alpha(opacity = 50); /* IE 5.5+ */ -ms-filter: alpha(opacity = 50); […]

Coding Blog

PHP to Parse CSS

Posted on

In a project a started a while ago (…and am likely to never finish, both due to legal restrictions and time constraints), I had to parse a chunk of PHP code and break it down into the individual values. Nothing in PHP can really do this┬ánatively, since CSS has to be parsed quite loosely. With […]