Learn CSS margins in 5 minutes! ↔️

แชร์
ฝัง
  • เผยแพร่เมื่อ 26 ส.ค. 2024
  • #CSS #course #tutorial
    CSS margin tutorial example explained

ความคิดเห็น • 28

  • @BroCodez
    @BroCodez  ปีที่แล้ว +22

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

  • @imrane206
    @imrane206 ปีที่แล้ว +27

    bro is a legend

    • @samisado6331
      @samisado6331 7 หลายเดือนก่อน

      M9wed had sat, kayshr7 khir men les profs

    • @imrane206
      @imrane206 7 หลายเดือนก่อน +1

      @@samisado6331 check point l m4arba li 4aydozo hna

    • @ElysiumGresit
      @ElysiumGresit 3 หลายเดือนก่อน

      Bro visited his friend

    • @imrane206
      @imrane206 3 หลายเดือนก่อน

      @@ElysiumGresit lol

    • @MOHAMED-dn6ue
      @MOHAMED-dn6ue 2 หลายเดือนก่อน

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

  • @Budywieser
    @Budywieser 7 หลายเดือนก่อน +5

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

  • @jainagulzamirbekovna9355
    @jainagulzamirbekovna9355 2 หลายเดือนก่อน

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

  • @pragyas_direction
    @pragyas_direction 2 หลายเดือนก่อน

    Really helpful for understanding margin concept

  • @deriver7353
    @deriver7353 8 หลายเดือนก่อน +1

    it's clear and easy to understand the usage.

  • @StylishBanditSlayerS
    @StylishBanditSlayerS 6 หลายเดือนก่อน +1

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

  • @user-wz9fo1eg1q
    @user-wz9fo1eg1q ปีที่แล้ว +1

    video của bạn rất hay

  • @Nevena-mp8lb
    @Nevena-mp8lb หลายเดือนก่อน

    Thank you soo much

  • @Meoww21375
    @Meoww21375 11 หลายเดือนก่อน +1

    Love you Bro I missed you too much😭🤧

  • @NASEERULLAH-hj7rc
    @NASEERULLAH-hj7rc 3 หลายเดือนก่อน

    Genius of the Century

  • @ragaswarupa4372
    @ragaswarupa4372 6 หลายเดือนก่อน

    THIS IS GOOD

  • @Dr.Mohandes
    @Dr.Mohandes 4 หลายเดือนก่อน

    thanks bro, it helped me

  • @GAMINGDEADCRACKER
    @GAMINGDEADCRACKER 22 วันที่ผ่านมา

    Can you please explain the margin: inherent

  • @Thisisyoutube-o6q
    @Thisisyoutube-o6q หลายเดือนก่อน

    Was that a Shrek reference? 😉

  • @user-iu5qw6uz6b
    @user-iu5qw6uz6b 4 หลายเดือนก่อน

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

  • @wilfredalexander8102
    @wilfredalexander8102 11 หลายเดือนก่อน +1

    Couldn't have said enough thank you

  • @user-fk8wp4ri5r
    @user-fk8wp4ri5r 10 หลายเดือนก่อน +1

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

    • @tnl_binex
      @tnl_binex 10 หลายเดือนก่อน

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

    • @CrazyAOT
      @CrazyAOT 7 หลายเดือนก่อน

      There isn't really a difference

    • @TheRetiredBatman
      @TheRetiredBatman 7 หลายเดือนก่อน

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

    • @kavish.agrawal
      @kavish.agrawal 6 หลายเดือนก่อน +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 4 หลายเดือนก่อน

      @@TheRetiredBatman Your're right.