Don't make the same mistake I did!
HTML-код
- Опубликовано: 20 фев 2023
- Some documentation links:
developer.mozilla.org/en-US/d...
developer.mozilla.org/en-US/d...
Source code can be found here:
code-vault.net/lesson/ac8f1cd...
===== Support us through our store =====
code-vault.net/shop
===== Check out our website =====
code-vault.net
===== Check out our Discord server =====
discord.code-vault.net
My guy went silent for almost a year and then came back as if nothing happened 👍
Blink twice in the next video if everything is alright
I prefer C but nice one anyway ;-)
wait a minute...this isn't C
Love yor videos man! Keep them comming!
Why wouldn't `align-items: center` + `justify-content: space-between` work?
yeah it works
It works in some cases if you know the exact width of the elements in the container or you don't want an exact gap. Also, this method relies on there always being some space left for the elements to grow into that wasn't already used. The gap completely disappears if you allow one of the divs (from the video) to grow (like setting flex-grow: 1). Having at least one element that uses the empty space of the flexbox is quite common, that's why "justify-content: space-between;" doesn't work.
I might make an update video regarding this
@@CodeVault thanks for clarifying