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
- Colors - Core conceptstailwindcss.com
- Easing Gradientslarsenwork.com
- border-radius CSS property - CSS | MDNdeveloper.mozilla.org
- CSS Basic User Interface Module Level 3 (CSS3 UI)drafts.csswg.org
- Understanding Layout Algorithms • Josh W. Comeaujoshwcomeau.com
- CSSweb.stanford.edu
- LaTeX.css — Make your website look like a LaTeX documentlatex.vercel.app
- What is CSS? - Learn web development | MDNdeveloper.mozilla.org
- Say precisely what you mean.index.how
- A Complete Guide to CSS Grid Layout | CSS-Trickscss-tricks.com
- text-overflow CSS property - CSS | MDNdeveloper.mozilla.org
- A Complete Guide to CSS Concepts and Fundamentalstania.dev