Learn CSS margins in 4 minutes 📏

Поделиться
HTML-код
  • Опубликовано: 27 июл 2024
  • CSS margin tutorial example explained
    #CSS #margin #tutorial
    body{
    margin: 0px;
    }
    #box1{
    border: 5px solid;
    width: 250px;
    height: 250px;
    font-size: 22px;
    background: greenyellow;
    /*
    margin-top: 50px;
    margin-left: 50px;
    margin-bottom: 50px;
    margin-right: 50px;
    margin: 50px;
    */
    margin-right: auto;
    margin-left: auto;
    }
    #box2{
    border: 5px solid;
    width: 250px;
    height: 250px;
    font-size: 22px;
    background: dodgerblue;
    }
  • НаукаНаука

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

  • @BroCodez
    @BroCodez  2 года назад +24

    /* --------- style.css --------- */
    body{
    margin: 0px;
    }
    #box1{
    border: 5px solid;
    width: 250px;
    height: 250px;
    font-size: 22px;
    background: greenyellow;
    /*
    margin-top: 50px;
    margin-left: 50px;
    margin-bottom: 50px;
    margin-right: 50px;

    margin: 50px;
    */
    margin-right: auto;
    margin-left: auto;
    }
    #box2{
    border: 5px solid;
    width: 250px;
    height: 250px;
    font-size: 22px;
    background: dodgerblue;
    }

    My first website


    Lorem ipsum, dolor sit amet consectetur adipisicing elit. At alias velit, est omnis placeat ad saepe dolorum fugit mollitia deserunt delectus facere repellendus necessitatibus. Illum sapiente aliquam facilis reprehenderit soluta?
    Lorem ipsum dolor sit amet consectetur adipisicing elit. Nihil dolores pariatur officiis neque est facere explicabo in sit error maiores. Iusto velit blanditiis, illo magnam eum ipsum. Porro, modi ducimus?

  • @pantegohummus8215
    @pantegohummus8215 2 года назад +37

    I'm a visual learner and need to see something happen as it's being taught. This video is very helpful for me. Thank you !

  • @princealiemmnauel6754
    @princealiemmnauel6754 2 года назад

    this what the kind of video i love to watch, as u writing the code, its being executed at once and u will see it, thanks for splitting
    ur screen and thanks for the lesson, i really appreciate

  • @marcos7434
    @marcos7434 2 года назад +1

    THANK YOU. A LOT OF CONTENT IN 5 MINUTES. YOU'RE AWESOME!!!!!

  • @bolarinwaosunsanya3516
    @bolarinwaosunsanya3516 Год назад

    Thanks for shedding light on this. Really appreciate it.

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

    Another fantastic video. You are the best for a quick understanding of a topic. It's also amazing how much you learn in such a short video. Thanks very much.

  • @Binichmoses2
    @Binichmoses2 Год назад

    Thanks alot! Right to the Point, simple and easily understandably visualized.

  • @addda1899
    @addda1899 2 года назад +9

    Most underrated guy ive ever seen.
    You deserve at least a milion subs..!

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

    Great Video! Thanks.

  • @jasonm47100
    @jasonm47100 12 часов назад

    Your videos are helping me out a lot . Helping me stay sane LOL. Thank you so much.

  • @bluedownsit
    @bluedownsit Год назад

    Explained relly well Thank You!

  • @justchillin1012
    @justchillin1012 Год назад

    bro litteraly explained it so well

  • @abduragoma1631
    @abduragoma1631 2 года назад

    U r real Chad BROO, U actually worth MOORE subscribers!!

  • @letlearn7944
    @letlearn7944 Год назад

    explicated really well, thank you

  • @nickshares4806
    @nickshares4806 2 года назад +1

    solid video bro thanks

  • @22a2a
    @22a2a Год назад +2

    Amigo, eu nem falo seu idioma, mas aprendi mais com seu vídeo do que com muito material na minha língua natal!

  • @siddharthbhagat8458
    @siddharthbhagat8458 Год назад

    so much of knowledge in very short video.

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

    This is the only css playlist that kept me engaged the whole time🥲

  • @reniside4357
    @reniside4357 Год назад

    bro thanks for your help thus far, you have my sub 😎

  • @crazyboy-cw1om
    @crazyboy-cw1om Год назад

    very good short explanation man.

  • @abhinavkumar4375
    @abhinavkumar4375 Год назад

    well explained thank you

  • @nhatbui229
    @nhatbui229 2 года назад

    Thank you for the teacher I never met

  • @justinbanza4751
    @justinbanza4751 2 года назад

    Thank you very much for these videos

  • @Faithful25
    @Faithful25 Год назад

    You make everything easy

  • @unaiskalathingal9539
    @unaiskalathingal9539 Год назад

    easily learn about margin and padding from this video.
    thanks @bro code.

  • @gazanfaryusifli
    @gazanfaryusifli Год назад

    woow its amazing

  • @serial-killer2985
    @serial-killer2985 Год назад

    bro you are a live saver

  • @exe7909
    @exe7909 2 года назад

    Can you do next is padding and there uses. Keep up the good work!

  • @Dankake23
    @Dankake23 Год назад

    Understandble, have a good day!

  • @ProgrammingBD
    @ProgrammingBD 2 года назад +1

    sir Good Video

  • @ravivyas1612
    @ravivyas1612 2 года назад

    This video is very helpful

  • @paoloanichini3953
    @paoloanichini3953 2 дня назад

    Bro Code is THE BEST TEACHER IN THE WORLD

  • @TheEvertonDias
    @TheEvertonDias Год назад

    Thanks, Bro!

  • @manuelantony3292
    @manuelantony3292 Год назад

    simple and crisp

  • @joshbrook4332
    @joshbrook4332 2 года назад

    helpful, thanks :)

  • @MrLoser-ks2xn
    @MrLoser-ks2xn Год назад

    Thanks!

  • @spaaaaace8952
    @spaaaaace8952 Год назад

    Thank you.

  • @shvne1243
    @shvne1243 Год назад

    THANK YOU

  • @kartikchauhan2778
    @kartikchauhan2778 Год назад

    Great

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

    thanks man))

  • @user-eh2yv8fd5o
    @user-eh2yv8fd5o Год назад

    醍醐灌顶,功德无量👍🏾👍🏾👍🏾

  • @book2nez500
    @book2nez500 Год назад

    Thank you

  • @MuhammadAbdullah-pn2si
    @MuhammadAbdullah-pn2si 5 месяцев назад

    Thanks

  • @zaneyfolds2279
    @zaneyfolds2279 2 года назад

    thx a lot :)

  • @geniosesnback2184
    @geniosesnback2184 Год назад

    tjanks😲

  • @paolobena
    @paolobena Год назад

    Thx

  • @chiranthurs7610
    @chiranthurs7610 7 месяцев назад

    Thank you Sigma

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

    if I want to move a picture to another section of the page I would use margin ?
    seems easy enough, I was def getting padding and margin mixed up for sure, Thanks!

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

    👍👍👍

  • @midgamer4254
    @midgamer4254 Год назад

    Tnx

  • @manuelalejandrogarciaandra5850

    I have one question. I tried to use margin auto with an icon of fontawesome, but it didn't work until I made its container flex, so in icons margin does not the margin propertie works? Thank you

  • @ineffablemellifluous3489
    @ineffablemellifluous3489 Год назад

    When u padding , does it affect the already written width and height?

  • @jaswindersinghgill8574
    @jaswindersinghgill8574 9 месяцев назад +1

    how do you do it to the blue box move it right a few pxs

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

    in a div with a display of flex and warping is enabled, can you prevent the double margin of two elements? in just css no js?

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

    600th like lez go

  • @user-nc5dz3yf3f
    @user-nc5dz3yf3f 7 месяцев назад

    siuuuu

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

    How can i understand pixels?

  • @fbffgf9693
    @fbffgf9693 Год назад

    How to copy word to table

  • @paper4
    @paper4 2 года назад

    Margin-right never works😢Please help

  • @Mist_Ninjutsu
    @Mist_Ninjutsu Год назад

    bet

  • @suirvival3120
    @suirvival3120 Год назад

    That is hilarious thank you so much. Just one question. It seems simple but I couldn't do it. How can I put h1 and h2 and p under the same borderline and not separate. please or under the same square or rectangle or whatever it. But I want to put them under one the same roof.

    • @yeralmuzika
      @yeralmuzika Год назад

      I think if I am understanding you correctly, you can just put all of them under 1 div element with an id attribute to add css styling.
      Example:
      Title1
      Title2
      Lorem ipsum dolor sit amet consectetur adipisicing elit. Impedit alias sunt doloremque obcaecati dolorem molestiae corrupti recusandae et natus numquam, magni temporibus. Error corrupti quisquam cum libero excepturi, quibusdam provident!
      #box3 {
      border: 5px solid;
      width: 250px;
      height: 250px;
      font-size: 22px;
      background: rgb(0, 128, 85);
      color: aliceblue;
      }

  • @fyrukmcoo100
    @fyrukmcoo100 2 года назад

    :((

  • @plexussolair7716
    @plexussolair7716 Год назад

    Thank you.