Sunday, March 27, 2005

HTML ID CLASS - CSS Stub Creator

Great name huh? This is quite possibility the least "user experience" focused thing I have ever written. HOWEVER its really helpful, at least to me.

I first design my sites like structuring an XML document. Defining the various structures in to data nodes, like header. pagesection, pageSectionSub etc etc. The problem is, that most of my sites have a lot of classes and IDs. So when I go to create the CSS, I always have to look back at all the various names I managed to come up with.

So I wrote the CSS Stub Generator. You paste in your HTML, and pops out the CSS stubs that you would need to still that site.

Obviously, I offer no guarantees on this puppy, its a super quick REGEX look up and some formatting.