I'm David Gee, a freelance interaction designer and DHTML (that's "AJAX" for you Web 2.0 types out there) developer. I was born in Cape Town, South Africa, and currently reside in the Angeleno Heights neighborhood of Los Angeles, California.
This list only contains small, freelance projects, as most of my larger projects are bound by client confidentiality.
Over the last week or so, I picked up two pretty useful web development tricks that might not be obvious and/or widely known.
While I occassionally use Internet Explorer's proprietary CSS "expression" value calculations for prototypes, I always thought it was limited to one statement -- you can't use a semicolon to seperate multiple statements like you would in regular Javascript. However, you can use the && concatenator to accomplish the same thing, as such:
.myDivClass {
width:expression( (var expressionOne) && (var expressionTwo) )
}
...which can come in handy when you need to do some browser-specific object detection before applying a value.
This via a comment by Marc Köhlbrugge on Cameron Moll's blog, obtained from Paul O'B's site.
The second tip regards the use of multiple CSS class names on a single element. I use these fairly often, but I've always kept the CSS code seperate for each class, as I didn't think there was a way to apply the cascade to the intersection of multiple class names. Turns out there is, and it's as simple as it should be. For an element with two CSS classes:
<element class="classOne classTwo">
The relevant CSS would be:
element.classOne.classTwo {
/* rules */
}