--- id: css-grid-item-align title: "CSS Grid Item Align" category: "Frontend" status: "draft" verification_status: "conceptual" canonical_id: "" aliases: ["justify-self", "align-self", "place-self", "grid cell alignment", "CSS Grid Items Alignment", "grid item inline block alignment"] duplicate_of: "" source_trust_level: "B" confidence_score: 0.86 created_at: 2026-06-23 updated_at: 2026-06-23 review_reason: "" merge_history: [] tags: ["css", "web", "frontend", "w3schools", "grid", "alignment"] raw_sources: ["https://www.w3schools.com/css/css_grid_item_align.asp"] applied_in: [] github_commit: "" --- # [[CSS Grid Item Align]] ## 🎯 ν•œ 쀄 톡찰 (One-line insight) A single grid item can be aligned within its own grid cell using `justify-self` (inline / horizontal direction) and `align-self` (block / vertical direction), with `place-self` as their shorthand β€” each requiring available space inside the cell to have any effect. [S1] ## 🧠 핡심 κ°œλ… (Core concepts) - **`justify-self`** β€” used to align a grid item within its grid cell in the inline direction. [S1] - **`align-self`** β€” used to align a grid item within its grid cell in the block direction. [S1] - **`place-self`** β€” shorthand property for `align-self` and `justify-self`. [S1] - **Direction note (Tip)** β€” for pages in English, inline direction is left to right and block direction is top to bottom. [S1] - **Container-level equivalents** β€” `justify-items` and `align-items` can apply the same alignment to all grid items in a container. [S1] ## 🧩 μΆ”μΆœλœ νŒ¨ν„΄ (Extracted patterns) - **Per-item override** β€” `justify-self`/`align-self` target a specific item (e.g. `.item1`) to override the container's default alignment. [S1] - **Space precondition** β€” for these properties to have an alignment effect, the grid item needs available space around itself in the relevant direction. [S1] ## πŸ“– μ„ΈλΆ€ λ‚΄μš© (Details) Grid items can be aligned within their respective grid cells using `justify-self` (horizontal alignment within a cell), `align-self` (vertical alignment within a cell), and `place-self` (shorthand for `align-self` and `justify-self`). These can also be applied to all grid items in a container using `justify-items` and `align-items` on the grid container. [S1] **The CSS justify-self Property** The `justify-self` property is used to align a grid item within its grid cell in the inline direction. Tip: for pages in English, inline direction is left to right and block direction is top to bottom. Possible values: `auto` (default), `normal`, `stretch`, `start`, `left`, `center`, `end`, `right`. For this property to have any alignment effect, the grid item needs available space around itself in the inline direction. [S1] Using the `justify-self` property: [S1] ```css .item1 {justify-self: right;} .item6 {justify-self: center;} ``` **The CSS align-self Property** The `align-self` property is used to align a grid item within its grid cell in the block direction. Possible values: `auto` (default), `normal`, `stretch`, `start`, `end`, `center`. For this property to have any alignment effect, the grid item needs available space around itself in the block direction. [S1] Using the `align-self` property: [S1] ```css .item1 {align-self: start;} .item6 {align-self: center;} ``` **The CSS place-self Property** `place-self` is listed as a shorthand property for `align-self` and `justify-self`. A dedicated Example box with inline source code for `place-self` was: Not found in source. [S1] **Properties reference table** [S1] | Property | Description | |----------|-------------| | `align-self` | Align a grid item within its grid cell in the block direction | | `justify-self` | Align a grid item within its grid cell in the inline direction | | `place-self` | A shorthand property for `align-self` and `justify-self` | ## πŸ› οΈ 적용 사둀 (Applied in summary) The page's applied cases are per-item alignment overrides: pushing `.item1` to the right and centering `.item6` with `justify-self`, and starting `.item1` while centering `.item6` with `align-self`. No external project/commit applications found in the source. ## πŸ’» μ½”λ“œ νŒ¨ν„΄ (Code patterns) Horizontal (inline) alignment of specific items (language: CSS): ```css .item1 {justify-self: right;} .item6 {justify-self: center;} ``` Vertical (block) alignment of specific items: ```css .item1 {align-self: start;} .item6 {align-self: center;} ``` ## βš–οΈ 비ꡐ 및 선택 κΈ°μ€€ (Comparison & decision criteria) - Use `justify-self` for horizontal (inline-direction) alignment inside a cell; use `align-self` for vertical (block-direction) alignment. [S1] - Use `place-self` when you want to set both in one declaration. [S1] - Use `justify-items`/`align-items` on the container to set a default for every item, and `justify-self`/`align-self` on an item to override that default. [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.86 (place-self 예제 μ½”λ“œκ°€ μΆœμ²˜μ— μ—†μŒ β€” Not found in source) - **쀑볡 검사 κ²°κ³Ό:** μ‹ κ·œ 생성 (New discovery) ## πŸ”— 지식 κ·Έλž˜ν”„ (Knowledge Graph) - **μƒμœ„/루트:** [[CSS Tutorial]] - **κ΄€λ ¨ κ°œλ…:** [[CSS Grid Items]], [[CSS Grid Align]], [[CSS Grid Item Named]], [[CSS Grid Item Order]] - **μ°Έμ‘° λ§₯락:** Aligning one specific item inside its cell, as opposed to aligning the whole grid content. ## πŸ“š 좜처 (Sources) - [S1] W3Schools β€” CSS Grid Item Align β€” https://www.w3schools.com/css/css_grid_item_align.asp ## πŸ“ λ³€κ²½ 이λ ₯ (Change history) - 2026-06-23: Initial draft synthesized from the W3Schools "CSS Grid Item Align" page (Astra wiki-curation, P-Reinforce v3.1 format).