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

Поделиться
HTML-код
  • Опубликовано: 8 фев 2025

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

  • @julialisboa9684
    @julialisboa9684 4 года назад +52

    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!

  • @soulforthekindheart3766
    @soulforthekindheart3766 2 года назад +5

    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

  • @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!

  • @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 5 лет назад +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.

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

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

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

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

  • @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.

  • @kariette4
    @kariette4 4 года назад +2

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

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

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

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

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

  • @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!

  • @YuuffyLIVE
    @YuuffyLIVE 6 лет назад +5

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

  • @muhammadtalhaakbar826
    @muhammadtalhaakbar826 3 года назад

    This is what I was looking for. Simple to learn and great stuff. Thank you very 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.

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

    Honestly man, your a blessing 🎉

  • @OhReseT
    @OhReseT 4 года назад

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

  • @naazimjaleel9546
    @naazimjaleel9546 4 года назад

    What a Great Class! Love it till Now!

  • @laceyhunter2209
    @laceyhunter2209 4 года назад +1

    I love when Jason Batemen does tutorials.

  • @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!

  • @bensamsabu3047
    @bensamsabu3047 4 года назад

    your classes are just great...Thanx a lot

  • @janpedersen9120
    @janpedersen9120 6 лет назад

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

  • @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 6 лет назад +2

    Thanks for the courses video, I learn so much

  • @erlgr
    @erlgr 5 лет назад

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

  • @probhakarsarkar2430
    @probhakarsarkar2430 3 года назад

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

  • @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 🖊!

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

    This video helped me out so much man

  • @phoenixflamez6859
    @phoenixflamez6859 3 года назад

    bro u are a legend thanks for the big help

  • @ebizguy23
    @ebizguy23 5 лет назад

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

  • @mihaialexandru5264
    @mihaialexandru5264 5 лет назад

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

  • @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

  • @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

  • @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 ,,,

  • @hartfordacademy7375
    @hartfordacademy7375 3 года назад

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

  • @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

  • @darwinvasquez1051
    @darwinvasquez1051 6 лет назад +10

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

  • @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?

  • @imani828
    @imani828 4 года назад

    Very Helpful - thank you

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

    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.

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

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

  • @andrewtram3256
    @andrewtram3256 6 лет назад

    Love it! Very direct tutorial

  • @kritimandal686
    @kritimandal686 5 лет назад

    i just loved it. Thank you.

  • @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!

  • @ORIJINN_STUDIO
    @ORIJINN_STUDIO 5 лет назад

    Excellent tutorials

  • @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.

  • @goncalocantante
    @goncalocantante 5 лет назад

    Great videos man, thank you!

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

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

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

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

  • @efootballtester
    @efootballtester 4 месяца назад

    You’re the goat✌️

  • @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?

  • @thewindowgames2610
    @thewindowgames2610 4 года назад

    Thank you kind sir.

  • @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

  • @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.

  • @SpookySkeletons
    @SpookySkeletons 11 месяцев назад

    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

  • @sakinak8643
    @sakinak8643 5 лет назад

    Thank you thank you thank you SOOO MUCH!!

  • @daverdal1
    @daverdal1 5 лет назад

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

  • @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:)

  • @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;
      }

  • @travishill3002
    @travishill3002 4 года назад

    Why not use flexbox for the nav too?

  • @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

  • @idle_fish_by_the_shore
    @idle_fish_by_the_shore 4 года назад

    Awesome Videos really awesome

  • @medbenzekri
    @medbenzekri 4 года назад

    really amazing you got my subscribe ;)

  • @bdrsubuntu3159
    @bdrsubuntu3159 4 года назад

    so far so good

  • @rahmats.8913
    @rahmats.8913 4 года назад

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

  • @markanthonybautista1325
    @markanthonybautista1325 5 лет назад

    Great tutorial!!

  • @guidance_topicssibghat8537
    @guidance_topicssibghat8537 4 года назад

    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.

  • @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 😁

  • @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

  • @RandyX8
    @RandyX8 6 лет назад

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

  • @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

  • @matoblazek17
    @matoblazek17 6 лет назад +3

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

  • @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.

  • @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!

  • @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

  • @nonsuspiciouscolour
    @nonsuspiciouscolour 3 года назад

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

  • @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?

  • @ricardovazquez2274
    @ricardovazquez2274 5 лет назад +2

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

  • @igotofaith
    @igotofaith 5 лет назад

    what Application are you using?

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

    I know over time it is going to click... but currently flexbox just feels like pushing buttons and hoping for it to work. What a headache!

  • @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.

  • @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.

  • @Bazluu
    @Bazluu 5 лет назад

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

  • @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

  • @zealace8573
    @zealace8573 6 лет назад

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

  • @TaBanana-v1m
    @TaBanana-v1m 7 месяцев назад

    did i just center a div?!

  • @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 ?

  • @patriceammah1117
    @patriceammah1117 4 года назад

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

  • @hilmiarkan
    @hilmiarkan 6 лет назад +1

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

  • @mutisyajonathan7617
    @mutisyajonathan7617 5 лет назад

    Which HTML EDITOR is this?

  • @dariusz8005
    @dariusz8005 4 года назад

    How add post window php in row ?