Image Rollover Borders That Do Not Change Layout | CSS-Tricks

Updated . Posted . Visible to the public.

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.

Last edit
Keywords
css
License
Source code in this card is licensed under the MIT License.
Posted by Lexy to makandra dev (2010-02-27 13:08)