The place-self property is a shorthand for align-self and justify-self. It aligns one item inside its cell without changing every sibling.
01
One Item
Self alignment.
02
Shorthand
Two in one.
03
auto
Default value.
04
center
Common override.
05
Grid
Best fit.
06
Override
vs place-items.
Fundamentals
Introduction
The place-self property in CSS is a shorthand property that allows you to set both the align-self and justify-self properties in a single declaration.
This property is particularly useful when working with CSS Grid, as it provides a convenient way to align an individual grid item within its grid area both horizontally and vertically.
Definition and Usage
Set place-items on the container for the default alignment of all children, then use place-self on one child when that item needs different placement.
This pattern is common for featured cards, highlighted tiles, or any layout where one element should break the grid’s default alignment.
💡
Beginner Tip
Think of place-items as the team rule and place-self as one player choosing a different position inside their area.
Foundation
📝 Syntax
The syntax for the place-self property is straightforward. You can specify one or two values, where the first value sets the align-self property and the second value sets the justify-self property.
syntax.css
element{place-self:align-selfjustify-self;}
If only one value is provided, it will apply to both align-self and justify-self.
Basic Example
place-self.css
.centered{place-self:center;}
Syntax Rules
Apply place-self on the child item, not the container.
One value sets both align-self and justify-self.
Two values set block axis first, then inline axis.
auto inherits alignment from the container’s place-items rule.
Most powerful in grid layouts with explicit cell areas.
Use when only one item needs a different position inside its cell.
Defaults
🎯 Default Value
The default value of the place-self property is auto. This means the grid item will follow the default alignment specified by the grid container.
Cheat Sheet
⚡ Quick Reference
Question
Answer
Shorthand for
align-self + justify-self
Applies to
Grid and flex items
Inherited
No
Animatable
No
Common use
Override alignment for one child item
Reference
💎 Property Values
place-self accepts the same values as align-self and justify-self.
Value
Example
Description
auto
place-self: auto;
The default value. The item follows the container’s alignment.
start
place-self: start;
Aligns the item at the start of the container.
end
place-self: end;
Aligns the item at the end of the container.
center
place-self: center;
Centers the item within the container.
stretch
place-self: stretch;
Stretches the item to fill the container.
autocenterstartendstretch
Context
When Does place-self Matter?
place-self is the right tool when one item needs custom placement:
Featured tile — Center or enlarge one card in a dashboard grid.
Offset badge — Push one element to a corner of its cell.
Exception layouts — Keep container defaults but break one rule.
Less markup — Avoid wrapper divs just to reposition one child.
If every item should align the same way, use place-items on the container instead.
Preview
👀 Live Preview
All items use place-items: start on the container, but one item overrides with place-self: center.
Default only
A
B
C
D
One place-self
A
B
C
D
Hands-On
Examples Gallery
Start with the reference centered item, override one cell with two values, stretch a single item, and highlight a featured card.
▦ Grid Self Alignment
Use place-self on individual grid items — matching the reference example.
Example 1 — Centered Grid Item
In this example, we’ll use the place-self property to center a grid item both horizontally and vertically within its grid area.
The featured card breaks the dashboard’s default top-left alignment and sits in the middle of its cell, drawing attention without changing sibling rules.
Companion
place-self vs place-items
place-items sets the default alignment for all children on the container. place-self overrides that default for one item.
place-items defines how most children align in their cells.
place-items
2
One child uses place-self
That item overrides the default with its own alignment rule.
place-self
3
The item moves inside its cell
Only that child’s position changes. Siblings are unaffected.
Self alignment
=
★
Targeted layout control
One highlighted or offset item without rewriting the whole grid.
Compatibility
Browser Compatibility
The place-self property is supported in most modern browsers, including the latest versions of Chrome, Firefox, Safari, Edge, and Opera. However, it is always a good practice to test your website across different browsers to ensure compatibility.
✓ Grid · Modern support
Reliable place-self support
Chrome, Firefox, Safari, Edge, and Opera support place-self for grid item alignment.
96%Modern browser support
Google Chrome59+ · Desktop & Mobile
Full support
Mozilla Firefox45+ · Desktop & Mobile
Full support
Apple Safari11+ · macOS & iOS
Full support
Microsoft Edge79+ · Chromium
Full support
Opera46+ · Modern versions
Full support
Testing tip
Test grid overrides in Safari and Firefox if you rely on justify-self with unusual track sizing.
place-self property96% supported
Bottom line:place-self is widely supported for grid layouts in modern browsers.
Wrap Up
Conclusion
The place-self property is a powerful tool for web developers working with CSS Grid.
By allowing you to align individual grid items both horizontally and vertically in a single declaration, it simplifies the process of creating complex grid layouts. Experiment with different values and see how this property can enhance the design and layout of your web projects.
Use place-items on the container and place-self for exceptions
Apply place-self: center to highlight one tile or card
Use two values when block and inline alignment should differ
Prefer grid layouts for full justify-self behavior
Keep item sizes explicit when centering small elements
❌ Don’t
Put place-self on every child when place-items is enough
Confuse place-self with place-content
Expect justify-self to behave the same in all flex cases
Use stretch when the item should keep its natural size
Forget that auto follows the container default
Summary
Key Takeaways
Knowledge Unlocked
Five things to remember about place-self
Use these points when aligning one item inside its cell.
5
Core concepts
★01
One Item
Self alignment.
Purpose
⚙02
auto Default
Follow container.
Default
◉03
center
Common override.
Pattern
▦04
Grid Focus
Cell placement.
Context
pi05
place-items
Container default.
Companion
❓ Frequently Asked Questions
place-self is a shorthand that sets align-self and justify-self on one item. It controls how that individual item aligns inside its grid cell or flex area.
place-items sets alignment for all children on the container. place-self overrides alignment for one specific child.
The default value is auto, which means the item follows the container's align-items and justify-items alignment.
align-self works on flex items. justify-self is mainly useful in grid layouts, so place-self is most common on grid items.
A single value applies to both align-self and justify-self. For example, place-self: center centers that one item on both axes.