Learn CSS margins in 5 minutes! ↔️

Поделиться
HTML-код
  • Опубликовано: 20 сен 2023
  • #CSS #course #tutorial
    CSS margin tutorial example explained

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

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

    Bro Code

    Box 1
    Box 2
    /* style.css */
    body{
    margin: 0px;
    }
    .box{
    border: 5px solid;
    font-size: 5em;
    width: 250px;
    height: 250px;
    margin-top: 50px;
    margin-right: 50px;
    margin-bottom: 50px;
    margin-left: 50px;
    }
    #box1{
    background-color: hsl(0, 100%, 60%);
    }
    #box2{
    background-color: hsl(189, 100%, 55%);
    }

  • @Budywieser
    @Budywieser 6 месяцев назад +4

    Wow you help me alot understanding stuff about html and css. Thanks alot!

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

    it's clear and easy to understand the usage.

  • @StylishBanditSlayerS
    @StylishBanditSlayerS 5 месяцев назад +1

    Thank You So Much!!!! This Is So UseFull For Us!!!!

  • @pragyas_direction
    @pragyas_direction Месяц назад

    Really helpful for understanding margin concept

  • @jainagulzamirbekovna9355
    @jainagulzamirbekovna9355 Месяц назад

    I like the way you have expalined I am starting to learn it, thanks for your short and clear explanation.

  • @imrane206
    @imrane206 11 месяцев назад +24

    bro is a legend

    • @samisado6331
      @samisado6331 6 месяцев назад

      M9wed had sat, kayshr7 khir men les profs

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

      @@samisado6331 check point l m4arba li 4aydozo hna

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

      Bro visited his friend

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

      @@ElysiumGresit lol

    • @MOHAMED-dn6ue
      @MOHAMED-dn6ue Месяц назад

      ​@@imrane206 margin w padding w font-size w lakhra nsitha ba9i mafhmtch logique fihom

  • @Meoww21375
    @Meoww21375 10 месяцев назад +1

    Love you Bro I missed you too much😭🤧

  • @NASEERULLAH-hj7rc
    @NASEERULLAH-hj7rc 2 месяца назад

    Genius of the Century

  • @Dr.Mohandes
    @Dr.Mohandes 3 месяца назад

    thanks bro, it helped me

  • @user-wz9fo1eg1q
    @user-wz9fo1eg1q Год назад +1

    video của bạn rất hay

  • @Nevena-mp8lb
    @Nevena-mp8lb 11 дней назад

    Thank you soo much

  • @ragaswarupa4372
    @ragaswarupa4372 5 месяцев назад

    THIS IS GOOD

  • @wilfredalexander8102
    @wilfredalexander8102 10 месяцев назад +1

    Couldn't have said enough thank you

  • @user-iu5qw6uz6b
    @user-iu5qw6uz6b 3 месяца назад

    Why do you use class and id within the same div again?

  • @Thisisyoutube-o6q
    @Thisisyoutube-o6q 9 дней назад

    Was that a Shrek reference? 😉

  • @user-fk8wp4ri5r
    @user-fk8wp4ri5r 9 месяцев назад +1

    Hello I just want to ask. what is the difference of class and id? thank youu

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

      I think we use id to track / find element with java script like (get element by id)

    • @CrazyAOT
      @CrazyAOT 6 месяцев назад

      There isn't really a difference

    • @TheRetiredBatman
      @TheRetiredBatman 6 месяцев назад

      I think class can be used for multiple stuff at the same time but ID not? Im not sure

    • @kavish.agrawal
      @kavish.agrawal 5 месяцев назад +3

      ID is used to uniquely identify an element(a unique identifier). It is particularly useful when you want only 1 element to have specific styling.
      Another use is in JavaScript. JS uses getElementbyID to call upon an element to perform specific tasks.
      Class is used to define styling for HTML elements. It can be used multiple times, meaning that multiple elements can use the same class to style.

    • @Lee-mt9nr
      @Lee-mt9nr 3 месяца назад

      @@TheRetiredBatman Your're right.