Build an HTML + CSS Layout with Flexbox in just a few lines of code

Поділитися
Вставка
  • Опубліковано 4 січ 2025

КОМЕНТАРІ • 194

  • @julialisboa9684
    @julialisboa9684 4 роки тому +51

    I was watching an hour-long class on web dev, and, when they got to flex, I understood absolutely nothing.
    30min explanation, nothing.
    I came here and in 7min BOOM. Amazing!

  • @aarikaturner6833
    @aarikaturner6833 4 роки тому +17

    I just want to say how much this has helped me with my coding and web development class! My repositories look so much more professional! Thank you for breaking everything down to simpler terms!

  • @soulforthekindheart3766
    @soulforthekindheart3766 2 роки тому +4

    this video jumped me 1 month ahead of the class per se, I researched this countless times. sometimes it is not the information we're looking for but the right teacher.

  • @MikeGTraining
    @MikeGTraining 6 років тому +119

    MORE!!! WE WANT MORE !! hahaha seriously tho you're a really good teacher. Really enjoying the series. Thanks

  • @Anna-ot7dg
    @Anna-ot7dg 4 роки тому +4

    OMG you are the BEST! Thank you so so so much!!!! I have ADHD and this was MAGIC for me. To read or seeing someone talking about this...no, too much info to sort. To only hear and watch: perfect. I'm obsessed with HTML and CSS now.

    • @overflow7592
      @overflow7592 4 роки тому

      How has the learning process been? Where are you now?

  • @nenadmylink
    @nenadmylink 4 роки тому +2

    Make sure we all watch all Ads on this channell so they give us more of this BEST available tutorials I have found on you tube!!!

  • @tristanbouchard9997
    @tristanbouchard9997 4 роки тому

    These tutorials are actually how I'm learning to make my own professional website from scratch. A lot better when you're a developer and can say you made your site on your own without any tools like wordpress

  • @slimyelow
    @slimyelow 2 роки тому

    The best explanation of inline block I have ever seen.

  • @vm6445
    @vm6445 3 роки тому +1

    I was shocked that the video has ended already. Lol. You are explaining it very well!

  • @Lightdarksnake
    @Lightdarksnake 6 років тому +2

    Can't wait to build out more of the website! Always looking forwards to your videos!

  • @uaeson4386
    @uaeson4386 3 роки тому

    You explain the concept clearly. I really need to dive deeper into flex layout and grid as well. Thank you so much.

  • @IronLloyd
    @IronLloyd 5 років тому

    Wow! amazing, you really showed me clearly on how to make layout. I am getting frustrated why I cannot do a basic layout, I thought I am the dumbest person in the world. With simple and clear explanation, you save me, now I can do my assignment. Thank you , I am a new subscriber.

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

    I could listen to you all day! Really great video, thank you

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

    I love this, this tutorial is helping me master my coding abilities.

  • @kariette4
    @kariette4 4 роки тому +2

    So clear and well organized. Glad I could find it. Thank you!

  • @YuuffyLIVE
    @YuuffyLIVE 6 років тому +5

    wow i learned so much from this, cant wait for more videos, thanks!!

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

    You helped me pass my exam thanks a lot man. this was helpful

  • @poojagarg2028
    @poojagarg2028 6 місяців тому

    I just loved your way of explaining each topic. Thanks for the great help 🙂

  • @whoeverwhoever400
    @whoeverwhoever400 5 років тому

    5:29 If ul has the margin and padding 0 by default, then why did you type them? are they necessary?

    • @idle_fish_by_the_shore
      @idle_fish_by_the_shore 4 роки тому

      if you want the text to start at very beginning of the block then do that ...Its quite similar to what we did to body(selector) to remove the left and right spaces

  • @TheDreamFx
    @TheDreamFx 2 роки тому

    Hey, thank you for this series. I'm coming from matlab and python and wanted to have a look at webdev and your videos are very good starting point. Thank you so much!

  • @sirClogg
    @sirClogg 3 роки тому +1

    Thanks.
    It's the first time I ever worked with flexbox and I actually happened to use both column-reverse and row-reverse. The website has a set of rules in a form of image and text next to it. I wanted to have every other rule with text on the left and image on the right to make it more visually interesting. And with the mobile version, I wanted to be the rule with the image at the bottom.

  • @muhammadtalhaakbar826
    @muhammadtalhaakbar826 2 роки тому

    This is what I was looking for. Simple to learn and great stuff. Thank you very much

  • @EvanDear
    @EvanDear 5 років тому +1

    If you want to jump to the next tab like he did in 0:36, go to keyboard shortcuts in file-> preferance, search editor.emmet.action.nextEditPoint and create any key combination you want

    • @frouMagician
      @frouMagician 4 роки тому

      thank you so much good sir

    • @EvanDear
      @EvanDear 4 роки тому

      @@frouMagician you are welcome!

  • @olililo215
    @olililo215 4 роки тому +16

    "to some people somewhere in the earth." HAHAHAHA!

    • @cjeeckazad2995
      @cjeeckazad2995 4 роки тому

      olililo maybe you will be this person one day.Who knows,
      Don’t sell your 🖊!

  • @naazimjaleel9546
    @naazimjaleel9546 3 роки тому

    What a Great Class! Love it till Now!

  • @darwinvasquez1051
    @darwinvasquez1051 6 років тому +10

    I just was thinking on how can i learn to use flexbox.. thanks

  • @sheikhshakoor5062
    @sheikhshakoor5062 10 місяців тому

    Honestly man, your a blessing 🎉

  • @laceyhunter2209
    @laceyhunter2209 4 роки тому +1

    I love when Jason Batemen does tutorials.

  • @OhReseT
    @OhReseT 4 роки тому

    Love your videos man. They're very informative and helpful. Please continue!

  • @bensamsabu3047
    @bensamsabu3047 4 роки тому

    your classes are just great...Thanx a lot

  • @rhinni
    @rhinni 4 роки тому

    row-reverse and column-reverse can be very useful if you want to use the ~ (next siblings) and + (direct next sibling) selector. Since it only works on next siblings, reversing the order can make it possible to get the target elements as next siblings, even if visually they are previous siblings.

  • @bayonmbayo2997
    @bayonmbayo2997 5 років тому +2

    Thanks for the courses video, I learn so much

  • @ebizguy23
    @ebizguy23 5 років тому

    Interested in the next video on Flexbox. It seems like you were going to make another video on it. Sincerely, Kim

  • @janpedersen9120
    @janpedersen9120 6 років тому

    Really awesome, cant wait for next part. thanks a lot for doing this series.

  • @twanmooij1224
    @twanmooij1224 6 років тому

    This is great. Had a bit of a background to HTML, but this explains it all. Can't wait for the next video's. Thanks!

  • @probhakarsarkar2430
    @probhakarsarkar2430 3 роки тому

    Best css on earth. but the playlist is haphazard, cna you make a series?

  • @erlgr
    @erlgr 5 років тому

    Here I finish for today, you are really good at explaining!

  • @emilyhuang2759
    @emilyhuang2759 5 років тому +2

    shortcut: ul>li*3
    Is there a way of including the href in the automation?

    • @sh_gs5
      @sh_gs5 5 років тому

      This is how you do it:
      ul>li*3>a

  • @MD-nt9nv
    @MD-nt9nv 5 років тому +2

    Great clear easy to understand and well explained. What editor are you using?

    • @bhorpoetry7104
      @bhorpoetry7104 5 років тому

      visual studio code.......he is using ,,,

  • @carlerikssonskogh5784
    @carlerikssonskogh5784 2 роки тому +1

    I don't understand where the css code is? when I made a website as a school project I had a separate tab in vs code with css code. what I mean is that the html file and css file was separated.

    • @fireantseason5629
      @fireantseason5629 2 роки тому +1

      there are three different implementations you can have with css;
      the first is inline, which is where you insert the css directly into the html elements in the
      the second is internal css, which is what the video shows. you place the css into the of the document
      the third method, which is what you're thinking of, is external css, where you link the stylesheet in the

    • @carlerikssonskogh5784
      @carlerikssonskogh5784 2 роки тому +1

      okay, I understand. Thank you for the explanation!

  • @aah134-K
    @aah134-K 6 років тому +2

    These two videos need their playlist. Favorite video easy to follow.
    Do you have a video on your environment? Ad IDE

    • @eightfake9798
      @eightfake9798 4 роки тому +1

      sorry im so late, but his IDE is Visual Studio Code by Microsoft

  • @ourlittlefarminfulton4916
    @ourlittlefarminfulton4916 3 роки тому +1

    I've run into a problem with flex. My browser shows the divs of the triple section centered on the screen in a column. Here is my styling code followed by the html:
    section {
    background: white;
    color: gray;
    display: flex;
    flex-direction: row;
    padding: 20px;
    }
    div {
    background: red;
    margin: auto;
    width: 100px;
    }
    header
    a
    b
    c
    lower saection
    footer
    Any help in understanding where I went wrong would be much appreciated.

    • @ourlittlefarminfulton4916
      @ourlittlefarminfulton4916 3 роки тому

      I have found my mistake: a stray curly brace between my header styling and my section styling. The lesson learned is that the mistake may be outside the portion of the code where the mistake becomes apparent.

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

    This video helped me out so much man

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

    Thank you sir for all your time
    But below footer how did it turn white

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

    It seems really easy and logical. Is it easier now than it used to be? Im asking because the video is 5 years old so maybe there is some advancement in this field.

  • @silksong7277
    @silksong7277 3 роки тому

    At 5:03 when you where typing in text for the li tags, how do you automatically jump to the next line in-between the html tags?
    Every time I press the down after typing in some text it places the cursor directly underneath on the next line. I looked at the shortcuts for macs in vscode but I don’t see a shortcut for it.

  • @ryemccoy
    @ryemccoy 6 років тому

    Reverse direction can sometimes be useful for responsive stacking...when you want something on left to be on bottom of a stack...for instance.

    • @bigcheesepuff1
      @bigcheesepuff1 6 років тому

      Cant it be used to sort a list of items?

  • @szaboferenc1141
    @szaboferenc1141 5 років тому +2

    web developing is actually fking beautyful :O

    • @hanssans3040
      @hanssans3040 3 роки тому

      No it isn't I only do it for the money imagine actually having any passion for this shit

  • @phoenixflamez6859
    @phoenixflamez6859 3 роки тому

    bro u are a legend thanks for the big help

  • @mihaialexandru5264
    @mihaialexandru5264 5 років тому

    dude thanks a lot ur videos helped me pass my exam I love u BIG UP

  • @hartfordacademy7375
    @hartfordacademy7375 3 роки тому

    This is the BEST tutorial EVER! I could KISS you right now man!

  • @dorotaparzych2830
    @dorotaparzych2830 4 роки тому

    I don't understand one thing because I want a similar header as you showed in the movie ( in my case instead of a header a have a head which is above the body)
    When I want the black background to be stretched all over the width of the page... Why applying margin 0; and padding 0; to the header isn't working while writing the same in the body does the trick even though the body is below head?
    Thanks in advance.
    Ps. I really appreciate your content! It helped me to break through the problems of a fledgling WebDev:)

  • @andrewtram3256
    @andrewtram3256 6 років тому

    Love it! Very direct tutorial

  • @matoblazek17
    @matoblazek17 6 років тому +3

    When is the next vid commin out, i cant wait :D

  • @imani828
    @imani828 4 роки тому

    Very Helpful - thank you

  • @ORIJINN_STUDIO
    @ORIJINN_STUDIO 5 років тому

    Excellent tutorials

  • @DmitryRee
    @DmitryRee 6 років тому +1

    Thanks for the video. How to get half screen both for code and browser? Any html extension needed?

    • @hideokzm
      @hideokzm 6 років тому

      no you don't need any extensions to do that. just minimize you code editor same with the browser.

    • @lewiscritchley958
      @lewiscritchley958 6 років тому

      if you are on windows hold window key and press the arrow key if you are on mac hold the green window full-screen button at the top and drop and drag

  • @nettaj2453
    @nettaj2453 4 роки тому +1

    Another problem I'm having, when trying to figure out possibly what I did wrong with her flex button, is when I delete inline block, my list goes back vertical instead of staying horizontal. Am I missing something??? It looks just like his screen.

    • @MatttCollins
      @MatttCollins 4 роки тому

      Same here, I can't figure this one out. I thought it might just be a problem with chrome but it doesn't display as a row in any browser I try.

    • @MatttCollins
      @MatttCollins 4 роки тому +2

      Figured it out. You probably have your HTML set up like this: a Div>b Div>c but you need it set up like this: a Div>b Div>c .
      Your div tags need to be nested inside the tag.

    • @nettaj2453
      @nettaj2453 4 роки тому

      I'll check it out. Thank you.

  • @kritimandal686
    @kritimandal686 5 років тому

    i just loved it. Thank you.

  • @Bongorfians
    @Bongorfians 4 роки тому +1

    I have a question. What is the point/reason in learning web development this way instead of using another website to make one? for example wix and webflow

    • @pavlemilosevic8224
      @pavlemilosevic8224 4 роки тому

      So you think facebook or youtube could be made on wix or webflow?

  • @daverdal1
    @daverdal1 4 роки тому

    Great video, only recommendation is to use a black background so its easier on the eye balls.

  • @SpookySkeletons
    @SpookySkeletons 10 місяців тому

    How do you jump to a new line without carrying over the end of the previous line? Or jump to the very end behind the text in one line? Online it says "END" but that doesnt work

  • @goncalocantante
    @goncalocantante 4 роки тому

    Great videos man, thank you!

  • @TechDeviceFixerCZ
    @TechDeviceFixerCZ 6 місяців тому

    The row-reverse value is likely useful for Arabic or other languages that are written right to left :)

  • @RobisHaTa
    @RobisHaTa 5 років тому

    on this day still, you should use float layout because not all browser supports flexbox or parts of it but you have to know all 3 ways of laying your design

  • @tranquilmagister8481
    @tranquilmagister8481 2 роки тому

    4:33 it is a little bit different *qwack sounds* xD well that was at least different. Jokes aside, years latter still really good tutorial

  • @ricardovazquez2274
    @ricardovazquez2274 5 років тому +2

    Ive seen alot of use margin: auto; why not use space-between or space-around ?

  • @chslamenik9131
    @chslamenik9131 4 роки тому

    How do you do the quick switching between those lines of code? If I use just an arrow, it throws the cursor in the wrong place. Thanks!

  • @oksanaaloshyna2222
    @oksanaaloshyna2222 5 років тому

    Very glad that I've found this awesome course, thank you!
    Have a little question: for some reason,

    • @emilyhuang2759
      @emilyhuang2759 5 років тому

      Might note help, but in the older version of these videos, he had us install Emmett library.

    • @TheFlyingFerret
      @TheFlyingFerret 4 роки тому +1

      If your using visual studio code, don't type the '

  • @victorlara8356
    @victorlara8356 6 років тому

    Can you make a tutorial on html5 canvas websites ? Using three.js maybe ?

  • @ibeky_1
    @ibeky_1 6 місяців тому

    i watched a lot of coding learning vidios and i did not learn anything. i watched this and BOOM

  • @Bazluu
    @Bazluu 5 років тому

    Are we abandoning the triple-section?
    PS loving the videos

  • @hilmiarkan
    @hilmiarkan 6 років тому +1

    please do the backend course, like php and mysql. Thanks!

  • @rahmats.8913
    @rahmats.8913 4 роки тому

    how to bring the li section to the right corner of the page?

  • @travishill3002
    @travishill3002 4 роки тому

    Why not use flexbox for the nav too?

  • @RandyX8
    @RandyX8 6 років тому

    What software do you write your code in? It seems very handy!

  • @zealace8573
    @zealace8573 6 років тому

    good video...please do in separate page for css..

  • @idle_fish_by_the_shore
    @idle_fish_by_the_shore 4 роки тому

    Awesome Videos really awesome

  • @markanthonybautista1325
    @markanthonybautista1325 5 років тому

    Great tutorial!!

  • @efootballtester
    @efootballtester 2 місяці тому

    You’re the goat✌️

  • @NatiNoot
    @NatiNoot 6 років тому +2

    when i do div*3 nothing happens, how do i fix this?

    • @mikej7476
      @mikej7476 6 років тому

      This is a stupid question but, do you hit "enter"?

    • @Redheadtama1
      @Redheadtama1 6 років тому

      This will only work if you have Emmet installed. Emmet is installed by default in VS Code but if you are using another editor such as Brackets or Sublime, you may need to add it as an extension.

    • @NatiNoot
      @NatiNoot 6 років тому +2

      @@Redheadtama1 oops. 0:33 he says to hit tab, my bad guys

    • @MrAlwiinn
      @MrAlwiinn 5 років тому

      Thank you dude! xD

    • @azariahexplore1360
      @azariahexplore1360 4 роки тому

      Yeah the same thing happens for me, I hit tab and everything but nothing happens and I’m using vs code

  • @crazy1star
    @crazy1star 4 роки тому

    I'm having an issue in Dreamweaver where I put display: flex; and follow it with flex-direction: row; and nothing happens. I may or may not be just dumb but any tips would really help this noob out.
    These tutorials are immensely helpful to someone with 0 coding experience, btw.
    Update: I think I figured out why the display changes werent affecting my abcd divs. However, when I set the margin to auto they get super spread out lol
    Up-Update: Nvm I get it now lol.

  • @medbenzekri
    @medbenzekri 4 роки тому

    really amazing you got my subscribe ;)

  • @sakinak8643
    @sakinak8643 5 років тому

    Thank you thank you thank you SOOO MUCH!!

  • @pavlemilosevic8224
    @pavlemilosevic8224 4 роки тому

    For some reason I can't make my margin-right work for li, even after doing all you did in tutorial. Here goes the code:
    li{
    display: inline-block;
    margin-right: 20px;
    }
    I will comment the rest of my CSS code if I made mistake there.
    Update: I solved this, but from the other side I didn't. I just abandoned first document and did everything again and this time it worked fine, idk what was wrong first time but now everything is alright.

    • @pavlemilosevic8224
      @pavlemilosevic8224 4 роки тому

      body{
      background:rgb(88, 88, 88);
      color: white;
      font-family: Arial, Helvetica, Helvetica Neue, sans-serif ;
      margin: 0;
      padding: 0;
      }
      header{
      background: black;
      padding: 20px 40px;
      }
      section{
      background: white;
      color: gray;
      padding: 20px;
      display: flex;
      flex-direction: row;
      }
      div{
      background: red;
      margin: auto;
      width: 100px;
      }
      footer{
      background: black;
      padding: 10px 20px;
      }
      ul{
      margin: 0;
      padding: 0;
      list-style-type: none;
      }
      li{
      display: inline-block;
      margin-right: 20px;
      }

  • @bhavanshgupta6476
    @bhavanshgupta6476 5 років тому

    which key shortcuts do you use to directly jump from middle to end of tag .
    i use arrow key + ctrl but it goes one at a time and gets really annoying

  • @thewindowgames2610
    @thewindowgames2610 4 роки тому

    Thank you kind sir.

  • @guidance_topicssibghat8537
    @guidance_topicssibghat8537 3 роки тому

    Hi Sir,
    These videos are extremely good but there is a huge issue for beginners that is lecture numbers are not give accordingly so I don't understand clearly that what is the next or previous video, So may be I watch them randomly, I think this is not good for me

  • @DrLobster
    @DrLobster 6 років тому

    CSS Grid would be a great addition, if you already haven't done one yet.

  • @chapmansbg
    @chapmansbg 6 років тому

    what text editor is that and extension allows you to do multiple tags with a multiplication sign?

  • @nettaj2453
    @nettaj2453 4 роки тому

    My display (ex: display: flex;) is not blue. All of the other style tags are (background, color, and padding). I keep going back but I don't understand what is wrong. Please help me as I want to continue to learn.

    • @battlesocke
      @battlesocke 4 роки тому

      Did you add a semicolon ; to the end of the previous line?

  • @nonsuspiciouscolour
    @nonsuspiciouscolour 3 роки тому

    Did I miss something from the last episode? My code seems to be smaller than in the start of this video.

  • @coreyf9475
    @coreyf9475 4 роки тому

    at the display: inline;, the background-color disappeared and the 3 sections remained as one.....

    • @coreyf9475
      @coreyf9475 4 роки тому

      this is a 7:04 or about, can not get past this point and don't know why

  • @lifegpt
    @lifegpt 5 років тому

    I don't get how that multiply command works when i type in div*2 or whatever it displays it in the code but doesnt multiply the code by 2?

    • @mastertyystudios5572
      @mastertyystudios5572 5 років тому

      Did you press tab? I guess it also depends what IDE you're using.

  • @motazuk
    @motazuk 4 роки тому

    section{display: flex; flex-direction: row;}
    div{width: 100px;}
    Did not display as you've shown.
    What went wrong for me? ☹
    Oops! Forgot to close the div tags.
    Sorry 😁

  • @dariusz8005
    @dariusz8005 3 роки тому

    How add post window php in row ?

  • @muhammadidrees6650
    @muhammadidrees6650 6 років тому

    what font do you have in your editor, please?

  • @patriceammah1117
    @patriceammah1117 4 роки тому

    The list-style-type stuff doesn't work on V.S

  • @igotofaith
    @igotofaith 5 років тому

    what Application are you using?

  • @richowens5254
    @richowens5254 5 років тому

    what code editor are you using for this tutorial?