Archived posts, April 2011
Controlling width with CSS3 box-sizing
The CSS3 box-sizing property can be incredibly useful when you want flexible widths on elements that also have padding and/or borders. And browser support is rather good.
Week numbers in Mac OS X
How to make Mac OS X display the current week number.
HTML5 document outline revisited
My current thinking on document outlines in HTML5 and how and when to use the new sectioning elements, all with HTML4 compatibility in mind.
Keyboard accessibility (again)
Keyboard accessibility really is not that hard to get right, but many, many web developers do not seem to think about it. Here are some simple guidelines that may help.
How to find the center of an area element with JavaScript
A simple JavaScript function that takes an area element’s shape and coords attributes and returns an array holding the horizontal and vertical center coordinates.
Make links focusable (or use real buttons)
When using a link to trigger JavaScript functionality, make it keyboard focusable by giving it a non-empty href attribute. Or use a real button instead.
Time to make the title attribute device independent
The contents of the title attribute in HTML is difficult or impossible to access in current browser implementations if you do not use a mouse.
- Previous month: March 2011
- Next month: May 2011