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

Комментарии • 8

  • @Bing.Chillin
    @Bing.Chillin Год назад +11

    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

  • @zyghom
    @zyghom Год назад +6

    I prefer C but nice one anyway ;-)

  • @TheBuilder
    @TheBuilder Год назад +1

    wait a minute...this isn't C

  • @Ddmd1789
    @Ddmd1789 Год назад

    Love yor videos man! Keep them comming!

  • @ianthehunter3532
    @ianthehunter3532 Год назад +2

    Why wouldn't `align-items: center` + `justify-content: space-between` work?

    • @taherrezzag9848
      @taherrezzag9848 Год назад +1

      yeah it works

    • @CodeVault
      @CodeVault  Год назад +1

      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

    • @taherrezzag9848
      @taherrezzag9848 Год назад

      @@CodeVault thanks for clarifying