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.

Posted on April 5, 2011 in CSS

Week numbers in Mac OS X

How to make Mac OS X display the current week number.

Posted on April 7, 2011 in Mac, Productivity

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.

Posted on April 12, 2011 in HTML 5, Accessibility

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.

Posted on April 14, 2011 in Accessibility

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.

Posted on April 18, 2011 in JavaScript

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.

Posted on April 20, 2011 in Quick Tips, Accessibility, JavaScript

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.

Posted on April 26, 2011 in Browsers, Accessibility, Usability