Learn CSS display property in 4 minutes! 🧱

Поделиться
HTML-код
  • Опубликовано: 16 ноя 2024

Комментарии • 41

  • @BroCodez
    @BroCodez  Год назад +27

    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;
    }

  • @safayatanimations3083
    @safayatanimations3083 2 месяца назад +27

    Clearcut, simple, Easy, no music, Straight to the point Video, perfect, welldone.

  • @JamesBondRJ707
    @JamesBondRJ707 8 месяцев назад +16

    thanks bro, I was wondering what the heck is inline-block . Today I got it clear... thanks again...

  • @marianuntaru7940
    @marianuntaru7940 5 месяцев назад +2

    After watching some videos and still struggling finally you brought the light! Easy and straight to the point ! Thank you!

  • @JayantBB78
    @JayantBB78 8 месяцев назад +5

    No nonsense, right to the point video. 👍🏻

  • @muhammadrafay7398
    @muhammadrafay7398 20 дней назад

    Straight forward,
    Simple
    And easy to understandable video.

  • @nateroskelley7565
    @nateroskelley7565 Год назад +6

    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?

    • @MustakAhmmed-l4f
      @MustakAhmmed-l4f Год назад

      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?

  • @joshuamensah9309
    @joshuamensah9309 11 месяцев назад +4

    Absolutely legendary video 💯

  • @dieguin_nomas
    @dieguin_nomas 3 месяца назад

    Best an easy to understand explanation ever ! thanks bro

  • @RohitKumar-zp6ci
    @RohitKumar-zp6ci 4 месяца назад

    Very helpful for revision

  • @FrederikWoellert
    @FrederikWoellert 20 дней назад

    Very good video.

  • @kamoliddinshukurov7339
    @kamoliddinshukurov7339 8 месяцев назад

    Easy to understand, thank you brother

  • @surfas5434
    @surfas5434 Год назад +6

    OMG looks like we are heading to another 10 hours bro code course

  • @pharaoh9483
    @pharaoh9483 3 месяца назад

    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.

  • @MasumExtended-jt4ty
    @MasumExtended-jt4ty 6 месяцев назад

    Not Bro Code..
    Its Best Code Channel..

  • @flaykaz
    @flaykaz 3 месяца назад

    amazing...

  • @markzait2750
    @markzait2750 9 месяцев назад

    Very good explanation. Thank you Bro Code!

  • @TrippHouse-z5b
    @TrippHouse-z5b 5 месяцев назад

    Bro Code is the goat

  • @_sun-shine-youtube.
    @_sun-shine-youtube. 6 месяцев назад +1

    ❤❤❤

  • @rishabhranjan5162
    @rishabhranjan5162 Год назад +1

    Amazing bro

  • @Wadih-bc
    @Wadih-bc 7 месяцев назад

    Very much appreciated! Thanks :)

  • @techtipstricks2776
    @techtipstricks2776 11 месяцев назад

    Wow. Great explanation.. u got subscriber

  • @sadamalihussein9582
    @sadamalihussein9582 2 месяца назад

    Thanks real help me

  • @arunbm123
    @arunbm123 8 месяцев назад

    nice

  • @Baraa_kj
    @Baraa_kj 6 месяцев назад +1

    bro i was stack in inline for 1h and u help me 🙏

  • @cartoondhamaka5897
    @cartoondhamaka5897 Год назад +1

    thank you

  • @MustakAhmmed-l4f
    @MustakAhmmed-l4f Год назад

    That's awesome explanation Bro Code!]

  • @halcyon__r3289
    @halcyon__r3289 Год назад +1

    Ty

  • @marco7838
    @marco7838 3 месяца назад

    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?

  • @thedevil6397
    @thedevil6397 Год назад +1

    Tysm for this 😇

  • @capslock3250
    @capslock3250 8 месяцев назад

    Thanks

  • @magickomchanell4556
    @magickomchanell4556 10 месяцев назад

    thank a milion

  • @andyl9920
    @andyl9920 8 месяцев назад

    Which one is best to use?
    Display: none
    Visibility: hidden
    -or-
    Opacity: 0

  • @EYUDEM
    @EYUDEM 2 месяца назад

    this is it

  • @sagnikdeb7516
    @sagnikdeb7516 7 месяцев назад +1

    Thanks bro because I was not able to understand it until I saw this video.

  • @rouisaek
    @rouisaek 11 месяцев назад +1

  • @AddoPatrick-g8y
    @AddoPatrick-g8y 10 месяцев назад

    Really useful but you talk too fast, I can barely here you.

    • @taitruong2604
      @taitruong2604 9 месяцев назад

      You can reduce the playback speed to .75 or .5 if you want to

  • @vs-cd6qq
    @vs-cd6qq 11 месяцев назад +1

    Thank you