Understanding the CSS Display Property - block, inline, & inline-block

preview_player
Показать описание
► The display property is responsible for how an element appears on the page. The main display properties (which we will cover in this video) are:

- block
- inline
- inline-block

Elements with display: block occupy the horizontal space of their container, stretching the full width available to them. Their height is determined by what their content needs.They can accept height and width properties which allow us to control size.

Inline elements only occupy the space their content needs, they sit in line, or within the content flow of block elements. They do notaccept height and width properties.

Elements with display inline-block mix behaviors of the other two display types. Inline in that they don't occupy their own line and sit next to other inline and inline-block elements. But block in that the height and width properties can be used now. So we can manipulate their size.

► Timestamps:
0:00 Start
0:51 The CodePen
2:04 display: block;
2:56 display: inline;
3:45 display: inline-block;
5:51 Touching on display: flex;
7:11 Replaced elements
8:11 Summary

► Get the code:

► Links used in the video:

► Social Media:

► Code & Projects:
Рекомендации по теме
Комментарии
Автор

More of these short, compact videos, explaining exactly like this one please. Perfectly explained

manendarpverma
Автор

Such a crystal-clear explanation. Thanks a lot!

besjanaelezi
Автор

The best new web dev channel. I'm learn slow but the way you explain the concepts, I easily undertsand. Sorry for my English not my native language. I wish you get more subs.

georgeepohcuaw
Автор

I am fairly new to web dev and have been a little bit confused about inline and inline-block elements until now. 100% completely understand that how they are working now.

jovanstrickland
Автор

Amazing channel and css explanations. I have been struggling with css skills for so long but your videos make them easier to understand. Best explaination of why they behave in certain ways

pranavguly
Автор

thanks a lot. your explanation video really straight to the point, with robush examples to be more easier to understand. thanksss!
really need it as beginner

futsuchinpo
Автор

Amazing series mate, really looking forward to future videos 👍

xXsmithyXx
Автор

Thank you! I have been trying to improve my front end skills and I have learned a lot watching your videos. Keep up the good content!

audenbickel
Автор

Great format ...wonderful and very understandable presentation.... thank you sir

thirty
Автор

LOVED THIS TUTORIAL!!! This helped me so much. It was so simple and easy to understand, thank you!

izaye_visuals
Автор

Nice. But how do you make the autocompletes and autoreplacements to work?

Like w300 —> width: 300px;

frankconijn
Автор

when you are adding height or width properties are you specifying it for the element or the content itself ?

sophiawokoma
Автор

Do you have any vids on responsive navigation that has a logo included? Turns into burger as it get smaller viewport width. Cheers mate

makingtheweb
Автор

I paid for udemy course, then always find I come over here to watch you to help it make sense 💁

marinstrup
Автор

Keep up with your work.. Your tutorial is amazing

saji
Автор

how are you doing that? 275 turning into 75 px ? how that is done....hope you reply

mahamudmunna
Автор

I subscribed 999 ! Get the champagne in the :)

x
visit shbcf.ru