Submit a CSS related link →

Posh CSS

For the modern day web designer.

Image Rollover Borders That Do Not Change Layout

# Linked to 13 March 2009, 03:00 in by Sam Brown

It’s a fact of CSS life that the ‘border’ of any block level element gets factored into it’s final box size for layout. That means that if you add a border on a hover to an element that didn’t already have a border of that exact size, you will cause a layout shift. It’s one of my pet peeves, for sure, when I see it in final designs. I find those little shifts, even 1 pixel, jarring and awkward.

Read more at css-tricks.com →

Sam Brown

Sam Brown is a freelance interface designer and web standards developer based in Edinburgh, Scotland. Sam's work can be seen at Massive Blue, blogs at Sam Brown and is on Twitter at @sambrown.