Card Layout (Design) Tutorial with HTML & CSS Grid - Web Design Tutorial

แชร์
ฝัง
  • เผยแพร่เมื่อ 2 พ.ย. 2019
  • Link to code:
    codepen.io/dcode-software/pen...
    In this video tutorial I'll be showing you how to create a card design (or layout) using plain HTML & CSS Grid.
    This style of web design is perfect for displaying a bunch of summarised information at once.
    Support me on Patreon:
    / dcode - with enough funding I plan to develop a website of some sort with a new developer experience!
    Follow me on Twitter @dcodeyt!
    If this video helped you out and you'd like to see more, make sure to leave a like and subscribe to dcode!
    #html #css #dcode

ความคิดเห็น • 75

  • @MGdriver77
    @MGdriver77 9 หลายเดือนก่อน

    This was so extremely helpful. My god. I was worried the video was going to be too short, and out of date (3 years ago) but it worked perfectly.
    Thank you so much, you've helped my understanding of how to do a card layout.

  • @georgeeno6956
    @georgeeno6956 ปีที่แล้ว

    From the depth of my heart ....... Thaaaaaaaaaaaaaaaank you. My day was terrible because of this but right now.... I'm smiling. Such a happy night cos i found this video

  • @TomasMisura
    @TomasMisura 4 ปีที่แล้ว +1

    i like card layout and I use them quite often so seeing different approach is another good example in my collection :)

  • @MissArmy
    @MissArmy 2 ปีที่แล้ว

    thank you for explaining all the concepts as well! I'm completely new to HTML and css and this was a big help!

  • @damirrekic4271
    @damirrekic4271 4 ปีที่แล้ว +5

    Thank you! Nice and clean explanation. Just what I looking for. :)

  • @Pankaj-Verma-
    @Pankaj-Verma- 3 ปีที่แล้ว +2

    Thank you for your kind help.
    That was a fantastic tutorial.

  • @LindaShum
    @LindaShum 4 วันที่ผ่านมา

    This is a great tutorial. Thank you for making it seem simple. Just what I needed for my project.

  • @lucianfursenco709
    @lucianfursenco709 2 ปีที่แล้ว

    great job bruh, it really helps me improving my skils !

  • @awaismushtaq5719
    @awaismushtaq5719 2 ปีที่แล้ว

    Nice! Good explanation and yet simple

  • @deenayoussry4584
    @deenayoussry4584 2 ปีที่แล้ว +1

    it's veryyyy helpful
    thank you, highly appreciated

  • @aaroncatolico7550
    @aaroncatolico7550 5 หลายเดือนก่อน

    *VERY GOOD tutorial! Thanks for sharing because i learned A LOT! Ill be testing this out soon.*

  • @alihamdi9359
    @alihamdi9359 3 ปีที่แล้ว

    thank you for the tutorial it helps me a lot

  • @scholab1319
    @scholab1319 3 ปีที่แล้ว

    greetings from India, precise and very informative presentation. keep it up.

  • @sameekshamurdia
    @sameekshamurdia 2 ปีที่แล้ว

    Thank you so much ✨

  • @WildlifeExplorer05
    @WildlifeExplorer05 2 ปีที่แล้ว

    Thank you its actually very help full👍👍

  • @denisbodea8082
    @denisbodea8082 3 ปีที่แล้ว

    Thank You!

  • @aech3427
    @aech3427 3 ปีที่แล้ว

    Great one

  • @footzenith2236
    @footzenith2236 3 ปีที่แล้ว

    Awesome bro...thanks

  • @JoseRodriguez-dn4mp
    @JoseRodriguez-dn4mp 3 ปีที่แล้ว

    Great video !!!

  • @diahrongrismore1054
    @diahrongrismore1054 4 ปีที่แล้ว +1

    Great tutorial. Did you purposely sneak in the BEM style coding? Or are you planning to flesh it out in a later tutorial? Which would be awesome. Doing a tutorial the way you did this is really teaching multiple subjects, i.e. SCSS/SASS, BEM and gui design structure, without mentioning it. Presenting BEM after this tutorial would be like a 'light bulb' going off in ones head because the seed for such technology was previously planted. It just need time to come to fruition. That's the way we all learn. The majority of us do not get it the first time around. Mostly because we're bombarded with TMI (too much information). Great job!

  • @medAmineRg
    @medAmineRg 3 ปีที่แล้ว

    awesome thankyou

  • @meninubunitu
    @meninubunitu ปีที่แล้ว

    Amazing!

  • @ishworgautam9717
    @ishworgautam9717 3 ปีที่แล้ว

    Thanks for your valuable content

  • @EUU100
    @EUU100 3 ปีที่แล้ว

    thank you

  • @rishabhpandey4517
    @rishabhpandey4517 3 ปีที่แล้ว

    Sir this helped me a lot thank you

  • @EverrynN
    @EverrynN 3 ปีที่แล้ว

    Thank you very much

  • @jcare07
    @jcare07 3 ปีที่แล้ว

    Excelente!!

  • @tokoiaoben3842
    @tokoiaoben3842 2 ปีที่แล้ว

    Thank you very much. Can you put navbar using list items (for instance, Home,Contact,Services & Product, and clicking menu items allow you to jump to content page accordingly.

  • @angelkolev659
    @angelkolev659 4 ปีที่แล้ว +3

    What do I have to change to make it look good with 3 cards per row instead of 4?
    It seems to me that this is made for 4 cards per row since 3 per row are not centred...

  • @echetammesoma8913
    @echetammesoma8913 9 หลายเดือนก่อน

    Exactly what I was looking for! You mistakenly said JavaScript though 😅

  • @inayathkhan100
    @inayathkhan100 4 ปีที่แล้ว +2

    Very useful tutorial, Thank you

    • @dcode-software
      @dcode-software  4 ปีที่แล้ว

      Thank you and no problem 😁

    • @sillejuulkjaerbo4723
      @sillejuulkjaerbo4723 3 ปีที่แล้ว

      @@dcode-software Thanks for the great tutorial-video.
      Would you mind taking a look at my question above considering an issue when the content in one or more of the cars are longer?

  • @raitasorin
    @raitasorin ปีที่แล้ว

    Ya Da Best

  • @yamacode9958
    @yamacode9958 4 ปีที่แล้ว

    If you give an element a width in percentages but its containing div has no width set, does it move up until it finds a div?

  • @abouteveryting4762
    @abouteveryting4762 10 หลายเดือนก่อน

    Respect :)

  • @swojchwat
    @swojchwat 9 หลายเดือนก่อน

    Amazing. Ive tried to do this kind of thing with flexbox. Ive ended up with width and gap set to some % and bunch of media queries. It was close but not as perfect as this solution. Ive also tried using width clamp but aparently it doesnt work with flex

  • @bikramchettri9405
    @bikramchettri9405 4 ปีที่แล้ว

    Hey Dom can you do a tutorial on range slider & Double range slider using javscript?

  • @sillejuulkjaerbo4723
    @sillejuulkjaerbo4723 3 ปีที่แล้ว +2

    @dcode
    What do I do when the elements card__content in one or more of the card(s) are longer than in the other(s) and therefore creates this white space underneath the card__info to fill out the space on the cards where the s are shorter?

    • @DAEDRICDUKE1
      @DAEDRICDUKE1 3 ปีที่แล้ว +2

      min-block-size: 210px; in card__content worked for me!

    • @nicogratama8877
      @nicogratama8877 ปีที่แล้ว

      I would like to know as well!!!

  • @samantharusike6933
    @samantharusike6933 4 ปีที่แล้ว +4

    Hello , i hope this finds you great.
    I have been following through the tutorial using the same technique to make cards for a recipe website but i noticed since each card can vary in content length its making the card differ in height . How can i make all the cards the same height irregardless of different content text . For the video tutorial it was the same exact thing on all cards do it looked all the same...please kindly respond and help me how i can get the problem fixed..Thank you for the great tutorial

  • @alxbengosu
    @alxbengosu 3 ปีที่แล้ว +2

    What do you do if the text in the cards has different amount of lines? So card 1 has 5 lines of text while card 2 has 7 lines of text and card 3 has 5 lines. There's a button at the bottom, which will be out of alignment with the other cards. How would I fix this?

  • @liviumircea6905
    @liviumircea6905 3 ปีที่แล้ว

    Good

  • @jacquesdefontaine8039
    @jacquesdefontaine8039 4 ปีที่แล้ว

    Hi Great tutorial! I tried to reproduce and everything looks great but for some reason, the light gray box at the bottom doesn't fit to the width of the "card" as if it has some padding. Any idea what that could be? Thank you!

    • @jacquesdefontaine8039
      @jacquesdefontaine8039 4 ปีที่แล้ว +1

      Ok. Never mind... The "card__info" was in the wrong "" Cheers

    • @jacquesdefontaine8039
      @jacquesdefontaine8039 4 ปีที่แล้ว

      Hi dcode, After more testing, I was wondering if there's a easy way to keep the "height" of the card even if the "card__content" text has different length? It'd be great if there was a "max" characters for the "card__content" without changing the "height" of the card so it doesn't look too messy ;)

  • @stentechy3346
    @stentechy3346 2 ปีที่แล้ว

    I am trying to recreate this my own way, How do increase the width of the card? I want it a bit wide.

  •  3 ปีที่แล้ว +1

    I find keyboard sound satisfying 😖🤣

  • @nicogratama8877
    @nicogratama8877 ปีที่แล้ว

    what if the content is different lengths? really need help on that one.

  • @joshlamprell4688
    @joshlamprell4688 4 ปีที่แล้ว +1

    My first is floating towards the middle of the page and when I try to add another it places it below, rather than next to it, can anyone help? thanks

  • @wthered
    @wthered 4 ปีที่แล้ว +1

    Can you pls pls pls make the same card with user image inside circle between top image and Lorem text centre align?

  • @deeeera
    @deeeera 3 ปีที่แล้ว

    Do we have to use so many div???

  • @krisukii3421
    @krisukii3421 3 ปีที่แล้ว

    how to make the coloumns smaller?
    thx for the tutorial btw xd

    • @oscorpion4045
      @oscorpion4045 3 ปีที่แล้ว

      i guess if you play around with the grid-template-columns you would manage to set the size you want

    • @lynaeaa4518
      @lynaeaa4518 3 ปีที่แล้ว

      Decrease the min size of the column?

    • @DAEDRICDUKE1
      @DAEDRICDUKE1 3 ปีที่แล้ว

      min-block-size: 210px; in card__content worked for me!

  • @melonheadwt
    @melonheadwt 3 ปีที่แล้ว

    now the Q is, how to turn this simple design into another simple cms
    post, edit, delete

  • @4541047
    @4541047 4 ปีที่แล้ว +2

    It will be nice if you will share the source code...

    • @dcode-software
      @dcode-software  4 ปีที่แล้ว +1

      No probs mate, source code is now in the description.

    • @4541047
      @4541047 4 ปีที่แล้ว +1

      Awesome. Thank U Dom!

  • @bandofbrotherbob1932
    @bandofbrotherbob1932 ปีที่แล้ว

    Yeap💔💔

  • @mesalesme7501
    @mesalesme7501 2 ปีที่แล้ว

    this guy never answers comments and says "I'll leave a link" but never does..

  • @inee669
    @inee669 2 ปีที่แล้ว

    this isn't responsive.

  • @lofcwomen-com
    @lofcwomen-com 8 หลายเดือนก่อน

    This is excellent but why can I not expand it to 100% of the VW? It's stuck at 1000px and defies all attempts to expand it for bigger screens.