flâneur

CSS outline Property

w3schools.com · 250 words · saved by 1 readers

Set an outline around a <h2> element and a <div> element.

Example Set an outline around a <h2> element and a <div> element: h2 { outline: 5px dotted green; } div.a { outline: 2px dashed blue; } Try it Yourself » Definition and Usage An outline is a line that is drawn around elements, outside the borders, to make the element "stand out". The outline property is a shorthand property for: outline-width outline-style (required) outline-color If outline-color is omitted, the color applied will be the color of the text. Note: Outlines differ from borders! Unlike border, the outline is drawn outside the element's border, and may overlap…

saved by

related reading