Facebook uses browser-specific body classes

Use browser-specific body classes to avoid extra stylesheets or invalid CSS

Having recently worked on a website for which page load and performance was really important, I’ve found myself viewing the source code for more and more sites. Taking a look at Facebook recently revealed that they use browser-specific classes on the body element, so that if you’re browsing with Safari 4, you’ll see something like: Continue reading “Facebook uses browser-specific body classes”

IE6 CSS hacks with WordPress.com

A trick for tweaking the CSS of your Wordpress.com blog for IE6.

I’ve been working on a WordPress.com blog for someone for which the “edit the CSS” upgrade has been purchased, and all has gone swell so far with tweaking the Kubrick theme. A couple !important declarations needed, but no big deal. That is, of course, until “make it work in IE6” time came along.

Continue reading “IE6 CSS hacks with WordPress.com”

Incorporating web standards into your design brief or RFP

Working on a design brief for a radical makeover of the website at work, and have been doing a bit of digging around into how people specify web standards in their project specs. Came across this post from quite a while ago, and ended up using it as sort of a template, with some modifications:

Usability, accessibility and standards

  • The website will conform to the following standards:
    • Validation to either the W3C XHTML 1.0 transitional or strict document type
    • Validation to the W3C’s CSS 2.1 or 1.0
    • JavaScript will be implemented as progressive enhancement
    • Will meet all WCAG Priority 1 Guidelines, except No. 1
  • The website will render correctly in IE6+ and Firefox 2+
  • All multimedia files will be available for download, and video will be provided via Flash
  • Alternative stylesheets will be developed for printers and mobile devices
  • Character encoding will be UTF-8

This is still not solidified, and I may decide to put HTML 4 in along with XHTML, though my preference is for the latter (for more on developing with XHTMl, see Jeffrey Zeldman’s “Better living Through XHTML” at A List Apart). Continue reading “Incorporating web standards into your design brief or RFP”