demosthenes.info

I’m Dudley Storey, the author of Pro CSS3 Animation. This is my blog, where I talk about web design and development with , and . To receive more information, including news, updates, and tips, you should follow me on Twitter or add me on Google+.

web developer guide

my books

Book cover of Pro CSS3 AnimationPro CSS3 Animation, Apress, 2013

my projects

tipster.ioAutomatically provides local tipping customs and percentages for services anywhere.

Hwæt!

We gardena - in geardagum, þeodcyninga, - þrym gefrunon, hu ða æþelingas - ellen fremedon. Oft Scyld Scefing - sceaþena þreatum, monegum mægþum, - meodosetla ofteah, egsode eorlas...

Use the menu button in the top left corner of the example to unfold the navigation

In-Canvas 3D Fold Navigation

css / navigation

Estimated. reading time: 4 minutes, 25 seconds

There’s a general trend in crafting long-form site navigation that use an “off-canvas” UI model. In this mode, expanded site consisting of more than half-a-dozen links is brought in from outside the browser window when the user calls for it.

Conventional “off-canvas” navigation, showing options for bringing in UI controls from the left.

The site that you’re reading now uses a variation of the technique that might be called “under-canvas”: if the browser window is narrow enough, the site navigation is hidden beneath the site content, and revealed by sliding the content to one side.

Either model works well in responsive design, but it’s also possible to have site navigation folded within the page, rather than above or below the main canvas area.

Photograph of a model on a chair being sprayed by water

Basic CSS Borders

css / borders

Estimated. reading time: 2 minutes, 8 seconds

Every element can be provided with a basic border via , using one of 10 styles: none, hidden, solid, dashed, dotted, groove, ridge,  double, inset and outset. There are also three CSS3 border styles – wave, dot-dash, and dot-dot-dash – that are not yet supported in any browser.

The thickness of CSS borders is commonly defined in pixels, due to the fact that they are usually set to a “hairline” width in most site designs. Technically, border-width can be defined with any CSS measurement system supported by the browser, with the exception of percentages. The hue of a border can also be defined using any CSS color system, allowing for the possibility of semi-transparent borders.

Vanishing Acts: The CSS :empty Selector

css / selectors

Estimated. reading time: 1 minute

writers are the blind swordsmen of web development: we pen declarations and throw them at documents hoping that something might stick, but rarely are we aware of the specific content of a selected element: the question of how many words are in a paragraph, or if it contains any words at all, has traditionally been the responsibility of , , and other languages.

Very often server-side languages will be employed to fire dynamic content into HTML containers on a page. When such an operation fails, front-end developers deserve equal time to address the issue: rather than trying to code around a load problem using only JavaScript and PHP, we can add CSS to style the empty containers.