--- id: css-border-width title: "CSS Border Width" category: "Frontend" status: "draft" verification_status: "conceptual" canonical_id: "" aliases: ["border-width", "CSS border width", "border thickness", "thin medium thick border", "border size"] duplicate_of: "" source_trust_level: "B" confidence_score: 0.9 created_at: 2026-06-23 updated_at: 2026-06-23 review_reason: "" merge_history: [] tags: ["css", "web", "frontend", "w3schools", "border", "border-width"] raw_sources: ["https://www.w3schools.com/css/css_border_width.asp"] applied_in: [] github_commit: "" --- # [[CSS Border Width]] ## 🎯 ν•œ 쀄 톡찰 (One-line insight) The `border-width` property sets the thickness of a border, accepting either a specific size (px, pt, cm, em) or one of three predefined keywords β€” `thin`, `medium`, or `thick` β€” and like other border properties it takes one to four values for the individual sides. [S1] ## 🧠 핡심 κ°œλ… (Core concepts) - **`border-width`** specifies the width of the four borders. [S1] - **Specific size** β€” the width can be set as a specific size in px, pt, cm, em, etc. [S1] - **Keyword values** β€” alternatively, three predefined values are allowed: `thin`, `medium`, or `thick`. [S1] - **Per-side values** β€” the property can take from one to four values (for the top border, right border, bottom border, and the left border). [S1] - **Requires border-style** β€” width is only visible when a `border-style` is also set. [S1] ## 🧩 μΆ”μΆœλœ νŒ¨ν„΄ (Extracted patterns) - **Size or keyword** β€” choose either an explicit length unit or a relative keyword (`thin`/`medium`/`thick`) per border. [S1] - **One-to-four value box model** β€” a single declaration can give every side a different width (e.g. `25px 10px 4px 35px`). [S1] ## πŸ“– μ„ΈλΆ€ λ‚΄μš© (Details) **Border Width** [S1] The `border-width` property specifies the width of the four borders. The width can be set as a specific size (in px, pt, cm, em, etc.) or by using one of the three pre-defined values: `thin`, `medium`, or `thick`. [S1] **Example** β€” mixing specific sizes and keyword values across paragraph classes: [S1] ```css p.one { border-style: solid; border-width: 5px; } p.two { border-style: solid; border-width: medium; } p.three { border-style: dotted; border-width: 2px; } p.four { border-style: dotted; border-width: thick; } ``` **Specific Side Widths** [S1] The `border-width` property can have from one to four values (for the top border, right border, bottom border, and the left border). **Example** β€” supplying multiple values for individual sides: [S1] ```css p.one { border-style: solid; border-width: 5px 20px; /* 5px top and bottom, 20px on the sides */ } p.two { border-style: solid; border-width: 20px 5px; /* 20px top and bottom, 5px on the sides */ } p.three { border-style: solid; border-width: 25px 10px 4px 35px; /* 25px top, 10px right, 4px bottom and 35px left */ } ``` ## πŸ› οΈ 적용 사둀 (Applied in summary) The page's own applied examples are the paragraph-class stylesheets above: one demonstrating size vs. keyword widths and one demonstrating two-value and four-value per-side widths. No external project/commit applications found in the source. ## πŸ’» μ½”λ“œ νŒ¨ν„΄ (Code patterns) Single width for all sides (language: CSS): ```css p.one { border-style: solid; border-width: 5px; } ``` Per-side widths, four values (top, right, bottom, left): ```css p.three { border-style: solid; border-width: 25px 10px 4px 35px; /* 25px top, 10px right, 4px bottom and 35px left */ } ``` ## βš–οΈ λͺ¨μˆœ 및 μ—…λ°μ΄νŠΈ (Contradictions & updates) No contradictions found in the source. ## βœ… 검증 μƒνƒœ 및 신뒰도 - **μƒνƒœ:** draft - **검증 단계:** conceptual (μ‹€μ œ 적용 사둀 발견 μ‹œ applied/validated둜 승격 κ°€λŠ₯) - **좜처 신뒰도:** B (W3Schools β€” widely used educational reference, not a primary standards body) - **μ‹ λ’° 점수:** 0.90 - **쀑볡 검사 κ²°κ³Ό:** μ‹ κ·œ 생성 (New discovery) ## πŸ”— 지식 κ·Έλž˜ν”„ (Knowledge Graph) - **μƒμœ„/루트:** [[CSS Tutorial]] - **κ΄€λ ¨ κ°œλ…:** [[CSS Border Style]], [[CSS Border Color]], [[CSS Border Sides]], [[CSS Border Shorthand]] - **μ°Έμ‘° λ§₯락:** Used together with `border-style` whenever a border's thickness needs to be controlled. ## πŸ“š 좜처 (Sources) - [S1] W3Schools β€” CSS Border Width β€” https://www.w3schools.com/css/css_border_width.asp ## πŸ“ λ³€κ²½ 이λ ₯ (Change history) - 2026-06-23: Initial draft synthesized from the W3Schools "CSS Border Width" page (Astra wiki-curation, P-Reinforce v3.1 format).