This makes sense, and I understand how block, inline, inline-block, and none work together. Looking at it like this, it seems like display refers to how an element interacts with the elements around it. But there's 2 more display properties: Flex, and grid. I understand the choice not to include them in this video, they are large enough topics that they deserve their own video. But I don't really understand why display defines the way that the element interacts with the elements around it sometimes, and defines the way that the elements inside it interact other times. Could you explain what exactly display is supposed to be doing?
Bro Code
div
span
Lorem, ipsum dolor sit amet consectetur adipisicing elit. Aperiam asperiores doloremque repellendus quibusdam, quasi reprehenderit nesciunt illum repudiandae illo ad perspiciatis voluptas velit dicta similique veritatis quos non explicabo vel.
/* style.css */
div{
background-color: hsl(0, 100%, 75%);
width: 100px;
height: 100px;
display: block;
}
span{
background-color: hsl(204, 100%, 75%);
width: 100px;
height: 100px;
display: inline;
}
thanks bro, I was wondering what the heck is inline-block . Today I got it clear... thanks again...
After watching some videos and still struggling finally you brought the light! Easy and straight to the point ! Thank you!
No nonsense, right to the point video. 👍🏻
Absolutely legendary video 💯
Wow. Great explanation.. u got subscriber
Amazing bro
That's awesome explanation Bro Code!]
This makes sense, and I understand how block, inline, inline-block, and none work together. Looking at it like this, it seems like display refers to how an element interacts with the elements around it.
But there's 2 more display properties: Flex, and grid. I understand the choice not to include them in this video, they are large enough topics that they deserve their own video. But I don't really understand why display defines the way that the element interacts with the elements around it sometimes, and defines the way that the elements inside it interact other times. Could you explain what exactly display is supposed to be doing?
Exactly!
I am just out of my confusion!
by the way what do you do now and how far are you in learning code bro?
Very good explanation. Thank you Bro Code!
Very much appreciated! Thanks :)
Easy to understand, thank you brother
OMG looks like we are heading to another 10 hours bro code course
Tysm for this 😇
Thank you
thank you
❤❤❤
nice
Ty
Bro Code is the goat
Not Bro Code..
Its Best Code Channel..
Thanks
Thanks bro because I was not able to understand it until I saw this video.
thank a milion
bro i was stack in inline for 1h and u help me 🙏
Which one is best to use?
Display: none
Visibility: hidden
-or-
Opacity: 0
Really useful but you talk too fast, I can barely here you.
You can reduce the playback speed to .75 or .5 if you want to