box-sizing: border-box (EASY!)

Поділитися
Вставка
  • Опубліковано 16 чер 2024
  • 👉 NEW React & Next.js Course: bytegrad.com/courses/professi...
    Hi, I'm Wesley. I'm a brand ambassador for Kinde (paid sponsorship). I'll help you master the latest tech here:
    👉 Professional JavaScript Course: bytegrad.com/courses/professi...
    👉 Professional CSS Course: bytegrad.com/courses/professi...
    👉 Email newsletter (React + Next.js course out soon!): email.bytegrad.com
    💻 Premium Courses:
    Professional JavaScript: bytegrad.com/courses/professi...
    Professional CSS: bytegrad.com/courses/professi...
    All courses: bytegrad.com/courses
    🔔 Email newsletter (get new course discounts): email.bytegrad.com
    0:00 Used in CSS resets
    0:43 Box model
    2:30 content-box and border-box
    3:05 Adding padding
    5:55 Adding border
    #box-sizing #border-box #css #webdevelopment #coding #programming
  • Наука та технологія

КОМЕНТАРІ • 65

  • @ByteGrad
    @ByteGrad  Рік тому

    Mastering JavaScript is crucial if you want to be a modern, professional developer: ua-cam.com/video/qVmpJDQxucE/v-deo.html

  • @lemonadeforlife
    @lemonadeforlife Місяць тому +26

    Odin Project recommended your video. And I understood why now.
    Simple, precise and no bs.
    thanks man. You gained another subscriber,

  • @pritambera5879
    @pritambera5879 7 місяців тому +22

    If you are looking for box-sizing explanation, this is the only one you need.

  • @oluwaseyioyedeji
    @oluwaseyioyedeji 14 днів тому +1

    This is the only video i've watched on the box--sizing property that i did not get lost. Clear and Direct!

  • @IliaSavin-og3ck
    @IliaSavin-og3ck Місяць тому +9

    The best and the only needed explanation for box sizing. Thank you! Here from the odin project

  • @ayam3330
    @ayam3330 4 місяці тому +4

    honestly this is the best explanation of border box, i was struggled to understand before

  • @jd4300
    @jd4300 Рік тому +7

    Amazing explanation man. 2 years into my career now as a web designer. So happy I found your channel. It's a hidden gem. I have never seen explanations so clear and concise. You are a great teacher and clearly embody an elite skillet. New subscriber here : ). Keep up the amazing work.
    I used to set box-sizing: border box all the time but kind of understood it. But not really. After watching this video it is so much more clear I could actually explain it to someone else if I had to now. Thank you!!!

    • @ByteGrad
      @ByteGrad  Рік тому +2

      Love to hear it, thanks

  • @rusirumunasingha2234
    @rusirumunasingha2234 16 днів тому +1

    Love the simple and to-the-point explanation, man. Subbed!

  • @ghaithjr.9189
    @ghaithjr.9189 Рік тому +2

    I’ve been lost in youtube jungle searching for a real good explanation for the css box model and among of all them you are the winner , so weird how this video didn’t get so much view because I read the number with a “k” honestly by the time I’ve seen your video I thought it’s 363k instead of only 363 , keep the great work you are doing

  • @fatemamotiwala8554
    @fatemamotiwala8554 11 місяців тому +2

    This is the most simple and best explanation of the concept. I was so confused and now it seems so easy. Thank you

  • @user-lj6dc5qh7q
    @user-lj6dc5qh7q 2 місяці тому +11

    Odin Project sent me here..... I love the simple and informative description and i'm sure to return for more. Thanks @ByteGrad

  • @itsalexsa_m
    @itsalexsa_m Місяць тому +1

    The best explanation, very good!

  • @JaraafYamang
    @JaraafYamang 5 місяців тому +1

    Honestly that Best explanation between the parenthesis is a FACT!! There's not a better video. Thanks @ByteGrad. You kept a new subscriber!!

  • @Auranimali
    @Auranimali 3 місяці тому +1

    Great videos. Clear, efficient, and simple examples. Thank you!

  • @DigiPros210
    @DigiPros210 5 місяців тому +1

    A very clear basic explanation unlike others, thanks dude.

  • @tedndg
    @tedndg Рік тому +2

    i've never bothered to actually look this up, great explanation

  • @qasimawan3569
    @qasimawan3569 Місяць тому +1

    This is great, thank you for explaining this clearly!

  • @AmirmohammadKhosravi-kk6or
    @AmirmohammadKhosravi-kk6or 14 днів тому

    Your explanation was perfect bro! thanks.

  • @davidperlow3603
    @davidperlow3603 Рік тому +1

    This is not the best explanation about border-box, it is the ONLY explanation! 😄Great job, you did such a great job in explaining the concept in-and-out. I really liked how you went step by step and used clear white boxes. The explanation of the math as well as showing the differences each time made this concept so available to me. Thank you, I was stuck on this issue and can now progress!!!! Wishing you great success-

  • @sambitdas5946
    @sambitdas5946 3 місяці тому +1

    Really very clear explanation. Just loved it❤

  • @Mane_Tech
    @Mane_Tech Місяць тому +1

    I haven't found a better explanation on the box-sizing property as I have in this video.

  • @a_maxed_out_handle_of_30_chars
    @a_maxed_out_handle_of_30_chars 9 місяців тому +2

    simple, concise, and to the point
    thank you :)

  • @gotfragMIMK
    @gotfragMIMK 5 місяців тому +1

    Man i watched like 2 videos and i can understand them clearly. Congratz, you should really have more subs minimum 300k, but for me you need to have 500k+, just my feeling. Its rare to see constructed explanation + step by step with such clarity. Thank you

  • @nicolaswnorowsky1680
    @nicolaswnorowsky1680 24 дні тому +2

    ty came from odin project

  • @ibtyhale3370
    @ibtyhale3370 Місяць тому +1

    thank u . finally i understand the box sizing part

  • @ayanonlinee
    @ayanonlinee 4 місяці тому +1

    Love it, You make it so much easier and clear ❤

  • @faruqabolarin916
    @faruqabolarin916 9 місяців тому +1

    A very clear explanation, I appreciate man. just what I wanted.

  • @dougm3162
    @dougm3162 Рік тому +1

    The only dude that explained it well. Thankyou so much bro

  • @JuliaLee-kp5ny
    @JuliaLee-kp5ny 27 днів тому

    the best explanation ever! thank you!

  • @servantofourlordjesuschris6456
    @servantofourlordjesuschris6456 9 місяців тому +1

    Great explanation! Just making things simple.

  • @mostafasv
    @mostafasv 8 місяців тому +2

    Thanks for this amazing explanation

  • @mr.v.sanjay9847
    @mr.v.sanjay9847 7 місяців тому +1

    Understood Brother. Thank you so much.

  • @mikayla3386
    @mikayla3386 23 дні тому +1

    Here from The Odin Project!

  • @helveticdisplay
    @helveticdisplay 4 дні тому

    such a masterclass!

  • @krishna-tv8ju
    @krishna-tv8ju 9 місяців тому +1

    seriously thanks for this explanation...

  • @Grindeddude
    @Grindeddude 5 місяців тому +1

    Thank you very understandable explanation .

  • @ashokyadavfqplmgxjia4668
    @ashokyadavfqplmgxjia4668 8 місяців тому +1

    wow what a explanation sir................

  • @ChineduKadurumba-di1qm
    @ChineduKadurumba-di1qm Місяць тому +1

    great lesson

  • @georgehope5477
    @georgehope5477 Рік тому +1

    Brilliant! Thank you.

  • @axis4337
    @axis4337 4 місяці тому

    vera level explanation thaliva

  • @israelmbuyu4487
    @israelmbuyu4487 6 місяців тому +1

    great explanation sir.

  • @wrestlingEmpire1
    @wrestlingEmpire1 Рік тому +2

    Amazing man
    Thank you

  • @CarlosGutierrez-hw3zb
    @CarlosGutierrez-hw3zb 6 місяців тому +1

    Me quedo claro, gracias!

  • @user-ql6lp1yo1u
    @user-ql6lp1yo1u 11 місяців тому +1

    amazing man keep up the good work

    • @silverfullbuster9177
      @silverfullbuster9177 11 місяців тому

      Just curious, are you a self learning web developer and what stage level would you say you are at currently?

  • @soumitrapal8681
    @soumitrapal8681 2 місяці тому +1

    It's great 😃

  • @MartinPiorkowski-ss6jb
    @MartinPiorkowski-ss6jb 6 днів тому +1

    Hey I was sent by the odin project this was a perfect explanation with the border-box so you have my thanks! I was wondering though, how did you get your html to space out the two boxes with just ? for me my boxes stay connected.

  • @ashokyadavfqplmgxjia4668
    @ashokyadavfqplmgxjia4668 8 місяців тому +1

    nice explainatin sir .....

  • @farisgebremariam9088
    @farisgebremariam9088 Рік тому +1

    Jesus. Best explanation. Thank you.

  • @mannnie55
    @mannnie55 7 місяців тому +1

    Man ur too good

  • @devaraj7070
    @devaraj7070 4 місяці тому +1

    Super bro

  • @arshad1781
    @arshad1781 Рік тому +1

    Thanks

  • @yabezD
    @yabezD Місяць тому +1

    if i add an image to my website, and i have added some margins and borders to, why would i have to treat it as the border-box. if i increase the size of my image, i expect it to increase the image right ?

  • @user-cy8qh6qe2m
    @user-cy8qh6qe2m Місяць тому +2

    Odin project brought me here!

    • @maedsonsantos6433
      @maedsonsantos6433 Місяць тому

      same

    • @sattmowards
      @sattmowards Місяць тому

      @@maedsonsantos6433 did you finish

    • @maedsonsantos6433
      @maedsonsantos6433 Місяць тому

      @@sattmowards No, it will take a long time to finish. I'm in the Fundamentals, the Flexbox part to be more specific

    • @sattmowards
      @sattmowards Місяць тому

      @@maedsonsantos6433 But I'm already in the Javascript section

  • @bornofmindghimire5888
    @bornofmindghimire5888 12 днів тому

    What if " multiple nested div, all having border inside main-div which also have border "? I had done it and things not working. I do have to use both Universal * box-sizing :border-box and again on main div i have to put box-sizing: content-box.After that it works what would be the reason.? Please make video on it.Thankyou

  • @ConfusedHelmet-kd2wg
    @ConfusedHelmet-kd2wg 4 місяці тому

    in my case i need to add px after each number, but in some video i see people only write number without th px measumrint unit

  • @MoreData-hz8hm
    @MoreData-hz8hm Місяць тому

    ODIN PROJECT LETS FUCKIN GO

  • @nusratarif6519
    @nusratarif6519 8 місяців тому +1

    t th tha than thank thanks......

  • @deiviihernandez6059
    @deiviihernandez6059 Рік тому +3

    Thanks a lot!