--- id: css-absolute-units title: "CSS Absolute Units" category: "Frontend" status: "draft" verification_status: "conceptual" canonical_id: "" aliases: ["CSS absolute units", "fixed length units", "pixels px", "print units", "pt pc cm mm in"] 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", "units", "absolute", "length"] raw_sources: ["https://www.w3schools.com/css/css_units_absolute.asp"] applied_in: [] github_commit: "" --- # [[CSS Absolute Units]] ## 🎯 ν•œ 쀄 톡찰 (One-line insight) Absolute length units are fixed sizes that render exactly as specified regardless of screen size; pixels (`px`) are the most-used absolute unit for screens, while the others (`cm`, `mm`, `in`, `pt`, `pc`) are primarily for print. [S1] ## 🧠 핡심 κ°œλ… (Core concepts) - **Fixed lengths** β€” absolute units appear exactly that size regardless of the screen size. [S1] - **Not generally recommended for websites** β€” they are not recommended for screen use but are suitable for print layouts. [S1] - **Pixels dominate on screen** β€” `px` is the most commonly used absolute unit for screens. [S1] - **Whitespace / zero rule** β€” no whitespace can appear between the number and the unit; however, if the value is `0`, the unit can be omitted. [S1] ## 🧩 μΆ”μΆœλœ νŒ¨ν„΄ (Extracted patterns) - **Use `px` for precise screen control** β€” choose pixels when you need fixed, exact dimensions. [S1] - **Use physical units for print** β€” `cm`, `mm`, `in`, `pt`, `pc` map to physical measurements suited to print stylesheets. [S1] ## πŸ“– μ„ΈλΆ€ λ‚΄μš© (Details) **Absolute Units** Absolute length units are fixed and will appear as exactly that size regardless of the screen size. Absolute units are not recommended for use on screen, because screen sizes vary so much; however, they can be used if the output medium is known, such as for print layout. The most commonly used absolute unit for screens is the pixel (`px`). [S1] | Unit | Name | Description | | --- | --- | --- | | `px` | Pixels | The most used absolute unit for screens (1px = 1/96th of 1in) [S1] | | `cm` | Centimeters | Primarily used in print stylesheet [S1] | | `mm` | Millimeters | Primarily used in print stylesheet [S1] | | `in` | Inches | Primarily used in print stylesheet (1in = 96px = 2.54cm) [S1] | | `pt` | Points | A typographical unit (1pt = 1/72 of 1in) [S1] | | `pc` | Picas | A print unit (1pc = 12 pt) [S1] | Example using pixels for font sizes: [S1] ```css h1 { font-size: 40px; } h2 { font-size: 30px; } p { font-size: 17px; } ``` **Note:** A whitespace cannot appear between the number and the unit. However, if the value is `0`, the unit can be omitted. [S1] Pixel sizing gives full control but may not scale well across devices; users cannot adjust text size in browser settings when using pixels (though zoom still works). For better responsiveness in web design, consider relative units like `em` or `rem`. [S1] ## πŸ› οΈ 적용 사둀 (Applied in summary) The page's applied case is the pixel font-size example styling `h1` (40px), `h2` (30px), and `p` (17px). No external project/commit applications found in the source. ## πŸ’» μ½”λ“œ νŒ¨ν„΄ (Code patterns) Pixel font sizing (language: CSS): ```css h1 { font-size: 40px; } h2 { font-size: 30px; } p { font-size: 17px; } ``` ## βš–οΈ 비ꡐ 및 선택 κΈ°μ€€ (Comparison & decision criteria) - **`px` (screen)** β€” most-used absolute unit for screens; precise but does not scale across devices. [S1] - **`cm`/`mm`/`in`/`pt`/`pc` (print)** β€” physical/typographic units primarily for print stylesheets. [S1] - **Relative units (`em`, `rem`)** β€” recommended over absolute units for responsive web design. [S1] ## βš–οΈ λͺ¨μˆœ 및 μ—…λ°μ΄νŠΈ (Contradictions & updates) No contradictions found in the source. ## βœ… 검증 μƒνƒœ 및 신뒰도 - **μƒνƒœ:** draft - **검증 단계:** conceptual (μ‹€μ œ 적용 사둀 발견 μ‹œ applied/validated둜 승격 κ°€λŠ₯) - **좜처 신뒰도:** B (W3Schools β€” widely used educational reference, not a primary standards body) - **μ‹ λ’° 점수:** 0.88 - **쀑볡 검사 κ²°κ³Ό:** μ‹ κ·œ 생성 (New discovery) ## πŸ”— 지식 κ·Έλž˜ν”„ (Knowledge Graph) - **μƒμœ„/루트:** [[CSS Tutorial]] - **κ΄€λ ¨ κ°œλ…:** [[CSS Units]], [[CSS Relative Units]], [[CSS Font Size]] - **μ°Έμ‘° λ§₯락:** Referenced when fixed, exact sizing is needed (e.g., pixels on screen or physical units for print). ## πŸ“š 좜처 (Sources) - [S1] W3Schools β€” CSS Absolute Units β€” https://www.w3schools.com/css/css_units_absolute.asp ## πŸ“ λ³€κ²½ 이λ ₯ (Change history) - 2026-06-23: Initial draft synthesized from the W3Schools "CSS Absolute Units" page (Astra wiki-curation, P-Reinforce v3.1 format).