The Shapes of CSS. Using HTML5 To Transform WordPress’ TwentyTen Theme - Smashing Magazine. Last year, WordPress launched arguably its biggest update ever: WordPress 3.01.
Accompanying this release was the brand new default theme, TwentyTen2, and the promise of a new default theme every year. Somewhat surprisingly, TwentyTen declares the HTML5 doctype but doesn’t take advantage of many of the new elements and attributes that HTML5 brings. Now, HTML5 does many things, but you can’t just add <! Doctype html> to the top of a document and get excited that you’re so 2011. Mark-up, as they say, is meaning, and HTML5 brings a whole bunch of meaning to our documents. In a recent survey3 by Chris Coyier over at CSS-Tricks, almost two thirds of respondents said they would not use HTML5 in new projects. WordPress seems to sympathize with the majority of CSS-Tricks’ readers. 5The default TwentyTen WordPress Theme. For example, you’ve probably already heard of the <section> and <article> tags, both of which are champing at the bit to be embedded in a WordPress template.
Mordernizr.js … to: <? Perfect Full Page Background Image. This post was originally published on August 21, 2009 and is now being being republished as it has been entirely revised.
Both original methods are removed and now replaced by four new methods. The goal here is a background image on a website that covers the entire browser window at all times. Let's put some specifics on it: Fills entire page with image, no white spaceScales image as neededRetains image proportions (aspect ratio)Image is centered on pageDoes not cause scrollbarsAs cross-browser compatible as possibleIsn't some fancy shenanigans like Flash Image above credited to this site. Awesome, Easy, Progressive CSS3 Way We can do this purely through CSS thanks to the background-size property now in CSS3. Works in: Safari 3+Chrome Whatever+IE 9+Opera 10+ (Opera 9.5 supported background-size but not the keywords)Firefox 3.6+ (Firefox 4 supports non-vendor prefixed version) View Demo CSS-Only Technique #1 Big thanks, as usual, to Doug Neiner for this alternate version. Here is the CSS: Enjoy. CSS-Tricks. Awesome Fontstacks.