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
Very helpful for revision
Very good video.
Easy to understand, thank you brother
OMG looks like we are heading to another 10 hours bro code course
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.
Not Bro Code..
Its Best Code Channel..
amazing...
Very good explanation. Thank you Bro Code!
Bro Code is the goat
❤❤❤
Amazing bro
Very much appreciated! Thanks :)
Wow. Great explanation.. u got subscriber
Thanks real help me
nice
bro i was stack in inline for 1h and u help me 🙏
thank you
That's awesome explanation Bro Code!]
Ty
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?
Tysm for this 😇
Thanks
thank a milion
Which one is best to use?
Display: none
Visibility: hidden
-or-
Opacity: 0
this is it
Thanks bro because I was not able to understand it until I saw this video.
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
Thank you