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?
I was wondering why my sidebar which contained elements were not being centered properly, even though they were inside a flex container with justify content center and align items center.
When I create a p tag and double click on it, in the browser. It takes up a lot of space than it should. Maybe because it is a block level element that when I double click the blue space is quite big. How can I contain this and minimise the amount of space an element takes up?
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;
}
Clearcut, simple, Easy, no music, Straight to the point Video, perfect, welldone.
exactly how we like it it lol
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. 👍🏻
Straight forward,
Simple
And easy to understandable video.
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?
Absolutely legendary video 💯
Best an easy to understand explanation ever ! thanks bro
Not Bro Code..
Its Best Code Channel..
Easy to understand, thank you brother
Wow. Great explanation.. u got subscriber
Very good explanation. Thank you Bro Code!
I was wondering why my sidebar which contained elements were not being centered properly, even though they were inside a flex container with justify content center and align items center.
Very helpful for revision
Very good video.
OMG looks like we are heading to another 10 hours bro code course
That's awesome explanation Bro Code!]
Bro Code is the goat
Very much appreciated! Thanks :)
amazing...
Amazing bro
Thanks real help me
thank you
Tysm for this 😇
bro i was stack in inline for 1h and u help me 🙏
❤❤❤
Ty
nice
Thanks
Which one is best to use?
Display: none
Visibility: hidden
-or-
Opacity: 0
When I create a p tag and double click on it, in the browser. It takes up a lot of space than it should. Maybe because it is a block level element that when I double click the blue space is quite big. How can I contain this and minimise the amount of space an element takes up?
thank a milion
this is it
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
Thanks bro because I was not able to understand it until I saw this video.
Thank you