--- id: css-position-offsets title: "CSS Position Offsets" category: "Frontend" status: "draft" verification_status: "conceptual" canonical_id: "" aliases: ["position offsets", "top right bottom left", "CSS offsets", "positioned element offsets", "edge properties", "offset properties"] duplicate_of: "" source_trust_level: "B" confidence_score: 0.87 created_at: 2026-06-23 updated_at: 2026-06-23 review_reason: "" merge_history: [] tags: ["css", "web", "frontend", "w3schools", "position", "layout"] raw_sources: ["https://www.w3schools.com/css/css_position_offset.asp"] applied_in: [] github_commit: "" --- # [[CSS Position Offsets]] ## 🎯 ν•œ 쀄 톡찰 (One-line insight) The `top`, `right`, `bottom`, and `left` properties position elements β€” but they only take effect on positioned elements (those with `position` set to `relative`, `absolute`, `fixed`, or `sticky`). [S1] ## 🧠 핡심 κ°œλ… (Core concepts) - **offset properties** β€” `top`, `right`, `bottom`, and `left` are used to position elements. [S1] - **only on positioned elements** β€” these properties only work on positioned elements, i.e. elements with `position` set to `relative`, `absolute`, `fixed`, or `sticky`. [S1] - **margin-edge semantics** β€” each offset sets the corresponding margin edge for a positioned box (top/right/bottom/left margin edge). [S1] ## 🧩 μΆ”μΆœλœ νŒ¨ν„΄ (Extracted patterns) - **Positioned + offset** β€” set a `position` value other than `static` first, then use offset properties to move the element; offsets are ignored on static elements. [S1] - **Corner/center placement** β€” use combinations of offsets on an absolutely positioned element to place text at an image's corners or center. [S1] ## πŸ“– μ„ΈλΆ€ λ‚΄μš© (Details) **Positioning with top, right, bottom, and left** [S1] The `top`, `right`, `bottom`, and `left` properties are used to position elements. These properties only work on **positioned elements** (elements with `position` set to `relative`, `absolute`, `fixed`, or `sticky`). **Positioning Text On an Image** [S1] This section demonstrates practical application with an example showing text positioned at various corners and center of an image. The page provides five interactive "Try it Yourself" examples: Top Left, Top Right, Bottom Left, Bottom Right, and Centered. The exact verbatim CSS for each variant was not provided in the fetched source β€” Not found in source. **CSS Positioning Properties Reference Table** [S1] | Property | Description | |----------|-------------| | bottom | Sets the bottom margin edge for a positioned box | | clip | Clips an absolutely positioned element | | left | Sets the left margin edge for a positioned box | | position | Specifies the type of positioning for an element | | right | Sets the right margin edge for a positioned box | | top | Sets the top margin edge for a positioned box | ## πŸ› οΈ 적용 사둀 (Applied in summary) The page's applied example is positioning text at the corners and center of an image using offset properties on positioned elements. No external project/commit applications found in the source. ## πŸ’» μ½”λ“œ νŒ¨ν„΄ (Code patterns) General shape β€” offsets only apply once an element is positioned (language: CSS): ```css selector { position: absolute; /* or relative, fixed, sticky */ top: 0; right: 0; bottom: 0; left: 0; } ``` Note: this skeleton illustrates the rule that offsets require a non-static `position`; the page did not provide verbatim per-corner example code β€” Not found in source. [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.87 - **쀑볡 검사 κ²°κ³Ό:** μ‹ κ·œ 생성 (New discovery) ## πŸ”— 지식 κ·Έλž˜ν”„ (Knowledge Graph) - **μƒμœ„/루트:** [[CSS Tutorial]] - **κ΄€λ ¨ κ°œλ…:** [[CSS Position Fixed and Absolute]], [[CSS Position Sticky]], [[CSS Z-index]] - **μ°Έμ‘° λ§₯락:** Referenced whenever a positioned element must be moved using top/right/bottom/left offsets. ## πŸ“š 좜처 (Sources) - [S1] W3Schools β€” CSS Position Offsets β€” https://www.w3schools.com/css/css_position_offset.asp ## πŸ“ λ³€κ²½ 이λ ₯ (Change history) - 2026-06-23: Initial draft synthesized from the W3Schools "CSS Position Offsets" page (Astra wiki-curation, P-Reinforce v3.1 format).