CSS Stylesheet Variables

posted on 07/12/07 at 10:12:03 pm by Joel Ross

Here's?a post from Mads Kristensen from back in October about adding variables to CSS stylesheets. He provides a sample of what you can do, and then gives you a couple of different options for using it, depending on whether you have access to modify IIS or not.

I've been looking for something like this for a long time. One of my?biggest frustrations with web development is when colors need to be changed or widths need to be adjusted, and they are repeated throughout the style sheet. By being able to use variables for colors, widths, etc., it makes testing a few changes much, much easier.

I think it might be time to give this?a try and hopefully make CSS development a little simpler.

Categories: ASP.NET