CSS Grid | Real world examples

Поделиться
HTML-код
  • Опубликовано: 17 ноя 2024

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

  • @sofianealloui
    @sofianealloui 3 года назад

    Im in love with css grid .. its blowing mind thing

    • @Sweetdev
      @Sweetdev  3 года назад

      It is a big progress in the web development! It's awesome😊

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

    Nice work. Thanks!

  • @MarcCardwell
    @MarcCardwell 4 года назад +3

    at 8:30, that was pretty cool how you made 13 divs with an asterisk command.

    • @Sweetdev
      @Sweetdev  4 года назад +2

      Yes, the Emmet extension is the best for lazy devs like me :-D

    • @MarcCardwell
      @MarcCardwell 4 года назад

      @@Sweetdev it's the smart way to do it. i'll have to get that part (emmet) figured out. i only just downloaded the app, was using textMate, i'm a newbie trying to learn new skills.

  • @nageshthotakura8758
    @nageshthotakura8758 3 года назад +1

    Simply excellent ...

    • @Sweetdev
      @Sweetdev  3 года назад

      Thank you Nagesh! 🙏

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

    Instead of flexbox, could you not have nested a four column grid for the nav?

  • @Ioannnify
    @Ioannnify 5 лет назад +8

    Loved it, Thanks! Can you make part 2 so it's responsive.

    • @Sweetdev
      @Sweetdev  5 лет назад +2

      Thanks @Ioannnify. Just because you ask, I will make this video! :-D Coming SOON.

    • @Ioannnify
      @Ioannnify 5 лет назад

      Thanks! Looking forward to it!

    • @haccuk
      @haccuk 4 года назад

      @@Sweetdev Hi, I enjoyed your video but still waiting for the responsive video. A lot now look at websites initially on their phones or tablets and many designers design mobile first.

    • @Sweetdev
      @Sweetdev  4 года назад +2

      Your wishes are my command guys! 🤘 ruclips.net/video/2Lw2Y7p0yH4/видео.html

  • @doziemadu5411
    @doziemadu5411 2 года назад

    This is wonderful. Thanks so much. I will replicate.....and subscribe. You've just made my day

  • @ArunRajOnline
    @ArunRajOnline 4 года назад +1

    Using span property for grid-column and grid-row is much easier because you don't have to count the start and the end..

    • @Sweetdev
      @Sweetdev  4 года назад

      Thank you for your suggestions ARUN!

  • @setyoufree2726
    @setyoufree2726 5 лет назад +3

    @sweetdev.. excellent tutorial. However for the header, why do you use "flex" instead of grid? I saw in css file you type flex to manage the header.

    • @Sweetdev
      @Sweetdev  5 лет назад +2

      Hi Setyou Free! Because I was moving to the Focus of the video... a interesting image grid.

    • @setyoufree2726
      @setyoufree2726 5 лет назад

      @@Sweetdev -- ok thanks.

  • @joshuaandrews6767
    @joshuaandrews6767 3 года назад

    Super helpful, thank you!

  • @zte185
    @zte185 5 лет назад +1

    What happens if I get the information from an API? How can I know how to fit the elements without knowing how many will arrive? Thanks

    • @Sweetdev
      @Sweetdev  5 лет назад +3

      You can use some unique value from your API response and give as a class to your item/element/div. After in your wrapper class ...
      `display: grid;
      grid-gap: 20px;
      grid-template-areas:
      "header"
      "nav"
      "content"
      "sidebar"
      "ad"
      "footer";`
      developer.mozilla.org/en-US/docs/Web/CSS/CSS_Grid_Layout/Realizing_common_layouts_using_CSS_Grid_Layout
      This is just an idea :-).Try it and share how it goes.

  • @miristo
    @miristo 4 года назад

    dandy. but i could not find the main-nav class in your tutotial

  • @paulmoldovan9518
    @paulmoldovan9518 5 лет назад

    Hi. This will be complicated wenn i got the imgs from db. Lets say i got 25 imgs. I cant style every individual grid. Any solution?

  • @KingBlackChannel
    @KingBlackChannel 5 лет назад +1

    Very good man, you are doing very well, your content are high quality! I think that only thing you should do is to tell things a little bit quickly!

    • @Sweetdev
      @Sweetdev  5 лет назад

      Thanks man! I really appreciate feedback like this. Hope you stay around for the future!

  • @raquelsantos8184
    @raquelsantos8184 5 лет назад +1

    which extension did you use to do html more easily?

    • @DrHappybone
      @DrHappybone 5 лет назад +1

      Emmet

    • @Sweetdev
      @Sweetdev  5 лет назад

      If you are using VS Code it's coming by default. If not .... emmet.io/

  • @izaiaspereira1592
    @izaiaspereira1592 4 года назад

    How to put text in the images?

    • @Sweetdev
      @Sweetdev  4 года назад

      Hi! Can you be more specific about where you want to put the text?

  • @joseflores-cx5ld
    @joseflores-cx5ld 4 года назад +1

    buen video.

  • @thecallertotruth1121
    @thecallertotruth1121 5 лет назад +1

    very helpuful thanks

    • @Sweetdev
      @Sweetdev  5 лет назад

      You are welcome Malick!

  • @EvandroPastor
    @EvandroPastor 5 лет назад

    Excelent class!

  • @WilliamHuang1995
    @WilliamHuang1995 5 лет назад

    good stuff! subscribed

    • @Sweetdev
      @Sweetdev  5 лет назад

      Thank you! I really appreciate :-)

  • @LizzyMendivil
    @LizzyMendivil 4 года назад +1

    no make sense when you use sematic element header and then create a class with the same name. The class name is over

    • @Sweetdev
      @Sweetdev  4 года назад

      Hi Lizzy! You are right that in this example is not 100% needed. File free to style and put classes like it's make more sense to you!

  • @sajidrehman1496
    @sajidrehman1496 5 лет назад

    great!

  • @VGTKD
    @VGTKD 3 года назад

    Are you from Poland 🇵🇱?

    • @Sweetdev
      @Sweetdev  3 года назад

      😃 nop, I am not! You have your second guess @VG TKD 😉