Загрузка видео...
Не удалось загрузить видео
Centering a Div - CSS
187,710 просмотров • 1 год назад •via X (Twitter)
Комментарии: 11

What are you using for the animation ?

Many sites are too focused trying to chase the PHD level of SEO best practices when, in reality, they would get the most value from just getting their basics right. Internal links is a basic:

well done, love the animation/presentation

The Chrome inspect tool already does this for you.

Centering a div isn’t hard anymore. What’s hard is making content in nested divs not increase the height of its parent containers

One more 😉 .container { display: flex; // or grid } .child { margin: auto; }

This has to be fake, no one knows how to center a div

Or simply use .item { center: yes please! }

Position: absolute must have a parent with relative positioning, if I remember correctly...

Which tool you used to make this video?

This is the best way for me to learn HTML, please keep posting short clips like this!
