While this is nice and easy, I would suggest using outline
instead of border
, as border
changes various things like sizes of bounding box and breaks margin collapsing so with border you might have all ok, then remove the border and break your precise layout. outline
does not bring those issues.
5 Likes