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!
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?
No nonsense, right to the point video. 👍🏻
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.
Absolutely legendary video 💯
Best an easy to understand explanation ever ! thanks bro
OMG looks like we are heading to another 10 hours bro code course
Ur a lifesaver man❤️💪🏾
Very helpful for revision
amazing...
Easy to understand, thank you brother
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?
Very good explanation. Thank you Bro Code!
Bro Code is the goat
Wow. Great explanation.. u got subscriber
Thanks real help me
bro i was stack in inline for 1h and u help me 🙏
Very much appreciated! Thanks :)
Not Bro Code..
Its Best Code Channel..
Amazing bro
That's awesome explanation Bro Code!]
❤❤❤
Thank you
Tysm for this 😇
nice
Ty
Thanks
Which one is best to use?
Display: none
Visibility: hidden
-or-
Opacity: 0
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