property
justify-self — CSS reference
Overrides inline-axis self-alignment of an individual grid item within its grid area. Initial auto; not inherited. Auto normally uses the parent’s justify-items setting. Inline auto margins absorb positive free space before this alignment; the property does not align flex items on their main axis.
Formal Syntax & Structure
css syntaxcss
auto | normal | stretch | <self-position> | <overflow-position> <self-position> | …Working Example
Example Snippetcss
<!doctype html><html lang="en"><meta charset="utf-8"><title>justify-self</title><style>body{margin:0}#g{display:grid;width:300px;grid-template-columns:100px 100px 100px;grid-template-rows:40px 40px;justify-items:start;}#g>*{background:#146e73;color:white;box-sizing:border-box}#b{background:#345d8e}#c{background:#79518e}</style><body><div id="g"><div id="a" style="width:40px;justify-self:end">A</div></div></body></html>