CSS - Div aus dem Ankern lösen
bearbeitet von
@@Matthias Scharwies
> im Wiki: [**Inhalte_zentrieren**](https://wiki.selfhtml.org/wiki/CSS/Tutorials/Ausrichtung/Inhalte_zentrieren)
>
> ~~~ CSS
> #inhalte-werden-zentriert {
> display: flex;
> align-items: center;
> justify-content: center;
> }
> ~~~
Da ist das Wiki wohl nicht auf neuem Stand. Das geht einfacher:
```css
.box {
display: grid;
place-content: center;
}
```
Kwakoni Yiquan
{:@art-x-kwejian}
--
*Ad astra per aspera*{:@la}