--- id: css-outline-shorthand title: "CSS Outline Shorthand" category: "Frontend" status: "draft" verification_status: "conceptual" canonical_id: "" aliases: ["outline shorthand", "outline property", "CSS outline", "outline-width outline-style outline-color", "outline border-radius"] duplicate_of: "" source_trust_level: "B" confidence_score: 0.88 created_at: 2026-06-23 updated_at: 2026-06-23 review_reason: "" merge_history: [] tags: ["css", "web", "frontend", "w3schools", "outline", "shorthand"] raw_sources: ["https://www.w3schools.com/css/css_outline_shorthand.asp"] applied_in: [] github_commit: "" --- # [[CSS Outline Shorthand]] ## 🎯 ν•œ 쀄 톡찰 (One-line insight) The `outline` property is a shorthand that sets `outline-width`, `outline-style`, and `outline-color` in a single declaration, with values allowed in any order. [S1] ## 🧠 핡심 κ°œλ… (Core concepts) - **Shorthand for three properties** β€” `outline` combines `outline-width`, `outline-style` (required), and `outline-color`. [S1] - **Flexible value count** β€” one, two, or three values can be specified. [S1] - **Order-independent** β€” values can be specified in any order. [S1] - **Style is required** β€” `outline-style` must be present for the outline to render. [S1] - **Works with rounded corners** β€” outlines can be combined with `border-radius` to create custom styled effects around elements. [S1] ## 🧩 μΆ”μΆœλœ νŒ¨ν„΄ (Extracted patterns) - **Compact declaration pattern** β€” replace three separate `outline-*` declarations with a single `outline: