CSS Display Property Tutorial

In this video we learn about the CSS property “display.” We take a look at the most common values and their typical uses in web pages. Check out my “Get a Developer Job” course:

Have you created amazing pages with HTML & CSS and want to move them from your computer’s hard drive to online so the world can see them? The next step is to move your files to a web host. Learn about web hosts, my favorite hosting company, and how to save $40 on the only hosting plan you’ll need:

Sign up for my newsletter to receive periodic webDev tips, tricks, resources and coupons. Join the list at

Follow LearnWebCode on Twitter for resources and updates:






45 responses to “CSS Display Property Tutorial”

  1. Grims Avatar


  2. Kevin Kelly Avatar

    Fucking great video

  3. hicham idou Avatar

    great video big up

  4. Just me Avatar

    thank you so much! clarified my inline/block notions. Bless u.

  5. tran-zam.com Avatar

    This is the best explanation I have seen. Great job!

  6. Quentin McKay Avatar

    heighth is not a word…but thanks for the video 🙂

  7. Rupesh Vaingankar Avatar

    thanks .. now d concept r clear 🙂

  8. Amirul Idzham Avatar

    Another great video. Thanks. You're totally ready for the video presentation. Well done

  9. Abh19021 Avatar

    Now how can we make 3 blocks in a line? Do we need to first put 3 divs inside the main div and give inline-block to the main div or give inline-blocks to the 3 divs inside the main div?

  10. Nate L Avatar

    Do you teach?  What school do you work at?  I'm on my way.

  11. Viktoriia Iasiniuk Avatar

    Thank you. Very usefull.

  12. Kyaw Zin Latt Avatar

    May I know which IDE or Editor you are using?

  13. pari c Avatar

    do you have code repos for the above tutorials??

  14. Indiana Avatar

    very very long. bad practice

  15. sajidul islam Avatar

    really helpfull.thanks!

  16. Neslomniy Avatar

    thank you very much!

  17. Estraneo Avatar

    thank you very informative

  18. Ronnie Rios Avatar

    Well explained (y)

  19. Michael Oliver Avatar

    another great video explanation

  20. Samantha Shugars Avatar

    Your videos are simple, no frills, and informative. Thank you a bunch. I sort of mixed up the position, display, and float values but with the help of your video I'm starting to sort out how they're different and how they work together.

  21. Hui Hao Avatar

    Thank you so much!!! You helped me!

  22. Matthew Spencer Avatar

    I will be subscribing for sure. You get right to the point and told me exactly what I needed plus some additional information. You also get bonus points for not being 12 years old. I turn a video off the second I hear a high pitched voice with a cs:go wallpaper.

  23. Viktor Strate Avatar

    The blue box is bigger!

  24. Alan B Avatar

    Excellent..finally someone who can spell it in such simple terms… khan Academy:call this dude!

  25. Dan Cacovean Avatar

    great tutorial for understanding the very important display-property in css

  26. Knowideer Avatar

    great tutorial. very clear and concise! thanks

  27. Alex Calder Avatar

    You just cleared up in less than 10 minutes what has caused me trouble for literally years.  Thank you!  Great presentation.

  28. Shovon Jamali Avatar

    Nice and clear! But I have a question though – If img is an inline element then how can we set it's width and height ?!

  29. Tenzin Thayai Avatar

    Thank you for clearing my doubt!!!

  30. Maidul I Avatar

    really nice videos 🙂

  31. corelur Avatar

    You are great!!!!

  32. nicole caday Avatar

    can you please make a video on how to make items slider for ecommerce site? thanks in advance!

  33. Kacy Raye Avatar

    Why was the vertical height ignored, but the vertical padding was not ?

  34. Mojo Jojo Avatar

    sublime text in MAC O.S.

  35. Harish-Chandra Dubey Avatar

    can I have which editor u are using and what is operating system

  36. smb10011001 Avatar

    Thank you! This explains SO MUCH! By jumping in an teaching myself, I neglected to grok these important fundamentals of HTML/CSS programming. My wall has many head dents from frustration that you have cleared up. Thank you thank you!

  37. Jin Saborit Avatar

    i like how the way you teach, its very very clear, i am learning a lot from your channel and videos! keep it up!

  38. Paul Elksnis Avatar

    Really love your style of teaching. You are clear, keeping explanations simple and your pace enables me to grasp what it is you're explaining! I'm hooked!


  39. Sylinic Avatar

    I demand moar, MOARRRR.

  40. Shazery Nasir Avatar

    nice vidoes dude. learn alot from you keep posting the good work and codes 🙂

  41. Razzle Dazzle Avatar

    Thanks for all these tutorials, it has really helped me take my website to another level!

Leave a Reply

Your email address will not be published. Required fields are marked *