CSS Variables with PHP

When people are asked about features they would like to CSS, “variables” always seems to come up. Whether or not this is a good idea is still something I personally haven’t decided on, but I’d lean toward yes. Regardless, using PHP, it is trivially easy to use variables in CSS. This is certainly not a […]

A Dash of Rosemary on Your CSS

Rosemary is an open-source modular cascading filter-based modification system for CSS files; or commonly recognized as the acronym, OSMCFBMS4CSS. Your CSS files are run through a series of filters that modify it one after another. These filters can be toggled on/off, rearranged, or all of them disabled completely to give you raw output. It provides […]

CSScaffold – a CSS Framework Written in PHP

CSScaffold is a CSS framework written in PHP. Rather than try and create a static framework that uses the standard abilities of CSS, like Blueprint, it uses PHP to extend CSS. The syntax looks and feels exactly like CSS, except that you have some new, powerful abilities. The best part is that all of this […]

Supercharge Your CSS with PHP Under the Hood

Cascading Style Sheets is a presentational style sheet language. In that sense, it does not have a lot of the functionality that many developers want to satisfy their programmer instincts. Today, we’re going to learn how to supercharge your CSS by putting some PHP under the hood…

CSS hacks & browser version detection – a new approach

How to target almost any browser from the server side using PHP. The workflow… Style everything for a web standards compliant browser like Firefox or Opera. Load an additional PHP file which outputs CSS styles with specific hacks. That’s it you’re done.

Easy CSS Compression with PHP and mod_rewrite

In-depth article that shows how you can use PHP to automatically compress CSS and javascript files to help speed up your site….

Trick Out Your CSS With Server Side Code

CSS is a great tool for styling web pages and keeping the style code in it’s own place, instead of mucking up the HTML. Unfortunately, CSS is not a programming language, and does not have the tools that come with a server side language like PHP. However, we can use Server-side languages to generate style […]