December 2006 Entries

CSS Footer

This is a technique for creating a CSS footer that will snap to the bottom of the content or the bottom of the page, which ever is lower.  This all without any JavaScript. Download the code here. I learned the technique through "Google University" [read: I Googled it until I found an answer]. I wish I could give credit, but I've since misplaced the link I used. Thanks to whomever. The technique involves creating an "everything but the footer" div, and setting it's min-height to 100%. (For IE 6, set height to 100% -- compensate for IE 6's...

CSS - A Complete Journey

I taught 'CSS - A complete journey' at the Arizona .NET Users' Group last night. It was a blast! I can't wait to teach again. In the CSS presentation, we started with zero CSS knowledge, and built up the basic commands and syntax, inclusion of CSS in a page, and the box model. From there, we dived head-first into positioning, comparing and contrasting float, position, and clear. The thesis of the presentation was two-fold: For the CSS novice, you can take as much from CSS as you'd like. Start with styling fonts and...