Overview

suggest change

An outline is a line around an element, outside the border edge. Unlike border, it does not take up space in the box model, so adding one does not move the element or its siblings.

An outline can be non-rectangular when it follows inline fragments, for example a span whose text has more than one font size. In current browsers the outline follows border-radius. Older browsers drew a rectangle that ignored the curve.

The essential parts of outline are outline-color, outline-style and outline-width.

The definition of an outline is equivalent to the definition of a border:

An outline is a line around an element. It is drawn outside the border edge and does not affect layout. It is not the same as border.

outline: 1px solid black;

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents