CSS Flexbox Tutorial | Create Layouts Using CSS | Flexbox Tutorial | Learn HTML and CSS

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

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

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

    NEW UPDATED 2023 COURSE AVAILABLE! 🙂
    You can find it here: ruclips.net/video/v8jDnBYc0bs/видео.html&ab_channel=DaniKrossing

  • @Dani_Krossing
    @Dani_Krossing  7 лет назад +46

    Hi everyone :) The next HTML and CSS lesson is finally here. Even though it took a bit longer than expected. Enjoy!

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

      Hej ven! Jeg elsker dit arbejde og mange tak for at dele din viden med verden!
      Hvilken editor platform bruger du?

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

      @@TheElevenBravo da hell?

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

      ​@@epic_waffle2359 I think it is actually spelled backwards. try reading it reverse. :)

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

      @@TheElevenBravo He uses atom.io

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

      I’m still struggling to find the video on your page

  • @stefan4800
    @stefan4800 7 лет назад +103

    This new approach with animations is really cool, I can imagine how much additional time it took, but it's really a new level. :)

    • @Dani_Krossing
      @Dani_Krossing  7 лет назад +18

      Thank you :) I'm glad to see that it was appreciated. It took quite a while extra hehe

    • @dririswagner-storz
      @dririswagner-storz 5 лет назад +2

      It really was extremely helpful, thanks a lot for investing your time! Your lessons are really awesome and you are a great teacher!!

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

      The animations here provide true value. Thanks for your hard work

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

      Awesome illustration. 😊

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

      i guess it's kind of off topic but do anybody know a good website to stream new series online?

  • @sweetiemeese216
    @sweetiemeese216 3 года назад +1

    You're a life saver. My own instructor couldn't tell me how to correctly make a simple two-column flex box.

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

    There is a lot Teachers of HTML*CSS , But for me you are the best .
    i always say that everything need to be learn need a good teacher and a good teacher is someone who explain something hard and make it easy .
    Teacher is the key for learning Guys if you don't understand something it's because of the teacher and not your brain .
    Thank you mmtuts

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

    Great video :)

  • @RRS.Tripper
    @RRS.Tripper 5 лет назад +7

    This "Real Time View" representation is really helping a lot. I wish it were present in earlier videos as well :)

  • @RiaanOliver
    @RiaanOliver 7 лет назад +6

    Css grid is amazing, the future of web design. Flex box takes the pain out of current day layouts. Both are fantastic and flex box has been around for a few years now and that is the reason it has better browser support. That’s buddy great video 👍

  • @vighnesh153
    @vighnesh153 6 лет назад +2

    This is by-far the best tutorial for flexbox, I could find on youtube. Thanks!

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

    This is one of the best tutorials on Flexbox that I have seen in tech channels in RUclips! Definitely on my Top 3.

  • @_https
    @_https 7 лет назад +3

    I've learned this on school there it was a bit sketchy, and now I know everything, thank you!

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

    I normally dont comment on tutorial videos, but let me say your tutorials are easy to follow, applicable and to the point, keep it up!

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

    I like how you also explained some of the HTML as well. As a beginner, its easier to get a better understanding of the layout.

  • @proudofphotography2443
    @proudofphotography2443 7 лет назад +9

    Such Detailed Explanation. Bless you man

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

    Flex-Box. Beautifully explained. Thanks.
    {2022-09-21}

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

    I also love the animation! It vastly facilitates my understanding of your teaching. Thank you for putting so much effort in making these videos!

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

    I've been learning HTML, CSS and PHP for the last year. Love your tutorials they so easy to follow and understand, your a great teacher Daniel. Would it be possible for you to do a basic WYSIWYG tutorial?

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

    Thanks so much. My mind was stuck when it comes to Flexbox now I am still getting it.

  • @johnnydriesen7575
    @johnnydriesen7575 7 лет назад +1

    Wow, great vid !
    Clear examples, including explaining and showing all possible parameter-values (even the missing ones in your editor ...)
    Super, super cool !
    Thanks mmtuts.

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

    Brilliant way to explain the tutorial mate... Loved the animation helped me visualise the actual layout as you were explaining/tying it. Well done!!!!! I will watch this over & over until I get it in my thick scull :-)

  • @Vincent-fs8ry
    @Vincent-fs8ry 7 лет назад +6

    This was the video many were waiting thanks!

  • @JoshuaTMagee
    @JoshuaTMagee 5 лет назад +3

    Love this tutorial and everything that you do, Daniel! One piece of feedback, if it's helpful: five identical strings of Lorem Ipsum text are not the best choice for demonstrating the various styling options of flex box. While it would've taken a few more minutes to set up, I'd suggest for a future video to create several differently colored div blocks. Thanks again!

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

    This was so confusing until I watched your video. Thank you so much bro!

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

    If i forgot how flex-box works my mind just automatically remembers you HAAHAH that just shows how awesome and precise your explanation is

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

    I like how the way you teach the process; it is very efficient and easy to understand. I appreciated it alot, bro.

  • @geraldfoushee
    @geraldfoushee 7 лет назад

    so far so good, i wanted to use CSS grid but decided to give this a try and yeah its pretty cool.
    now i just have to center the site and see if i can get my navigation working right "sticky nav"
    see you soon. thanks

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

    Thanks for the cool tutorial. That's a lot of valuable information in a very short amount of valuable time. Just great!

  • @danieldrntss
    @danieldrntss 6 лет назад +2

    Your videos are so amazing. Thank you so much for this quality of tutorial!

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

    i love the animation it makes the teaching way easier

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

    Well done! I especially like the "Real Time View" you provide along the coding. May I ask you how this section is created/animated? Greetings from Munich, Germany.

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

    That real time view is SUPER helpful!!! Thanks!

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

    How can I choose the appropriate dimensions(width /height) for each template such as header, navigation, asid, main content and footer.

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

    By the way, how did you use the real time use. Is that a sort of platform that I can download?

  • @AleksaCar-bk1rx
    @AleksaCar-bk1rx 5 лет назад

    Superb quality

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

    Best tutorial i've watched so far. Well done m8.
    P.S Which laptop r u using?

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

    This is nice!

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

    I don't know why, maybe it's an update but for me the paragraph would just start a new line when it got to the edge of the container which means that it divided it's self into 4 text boxes across the screen instead of one going underneath.

  • @LearnEnglishByCartoon
    @LearnEnglishByCartoon 7 лет назад +4

    your video is helpful for me. thanks a lot.

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

    i loved this new approach

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

    Thanks! I understand it a little better 😀

  • @Racools
    @Racools 5 лет назад +1

    feel like there should be a part 2 to this because im trying to use flexbox instead of float now and i dont feel like i got enough from this video be able to use it. like if there was an example video on flex boxes while you made a website that would be pretty helpful

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

      i dont feel that

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

    Thank you very much!!!!!!!

  • @hadeeskyu8655
    @hadeeskyu8655 7 лет назад +3

    awesome tutorial

  • @Chan-uq2lo
    @Chan-uq2lo 3 года назад

    You solve my problem thank you

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

    What's the difference between using flex-basis and width

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

    Thank you for all your videos, its helping a lot.

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

    is there a way to align based on the content instead of the div box, i have pictures that dont fill the whole div box but i want them next to eachother

  • @larseissink99
    @larseissink99 7 лет назад

    Learned a lot! Thanks! :)

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

    Hi, can you help me please? I have 3 items in a container and I want the first 2 to be positioned next to each other on the left side but the third one I want to be positioned on the right side using flexbox, i tried everything but i haven't found a solution so far.

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

    Thanks so much...

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

    tnx a lot..this help how to using flex..

  • @geraldfoushee
    @geraldfoushee 7 лет назад

    I used (float) in my flexbox project to have text wrap around my image. Was there a better way?
    500 px for the container means we design for cellphone first i assume?
    I don't really understand how to use the inspect tool in Google chrome, am i the only one?
    i did not see an option to design for an iphone 6.

  • @LinguistAna
    @LinguistAna 7 лет назад +1

    Hi MMtuts , I love your videos , I think you are so awesome. I subscribed to your patreon . The only question I have ,
    is whether you will maybe include some of the gitfiles to the code.

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

    that realtime preview is pretty cool! did you program it yourself, or did you use some software to do it?

  • @FaisalJ662
    @FaisalJ662 7 лет назад

    i loved this method it's very easy and efficent to use thanks alot

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

    Thank you for your videos. I just want to mention that the default value of align-items is stretch not flex-start. When I was doing practice I confused thinking flex-start is default as you said.

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

    Thanks for the video. BUT what If i want to create a navigation bar, with three 4 items? Let´s say I want to put the first 3 items all close together to the left, and the 4ºone I want to put it all to the end right of the nav bar.
    If I select the 4ºitem in CSS with a class (for example) and I put "align-items: flex-end" nothing happens. And If I select all the 4 items, then, well, I just can´t do what I want.
    How something like this would be approached?

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

      @Pauli Liatto just make a class for 4th item and than make float: right; that's it

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

    you were more chatty than i would like but atleast i learned so thank you

  • @zahirabs1
    @zahirabs1 7 лет назад

    Awesome!!!!

  • @ParminderSingh-xn1qg
    @ParminderSingh-xn1qg 7 лет назад

    Thanks for the awesome tutorial man. Just curious which should i use CSS Grids Or Flexbox. Which one is better?

    • @Dani_Krossing
      @Dani_Krossing  7 лет назад

      Recently I use CSS Grid to create entire page layouts for practice, but I think it is a great idea to mix Flexbox into it :) You don't have to stick with only one.

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

    Thank you for the video, can you please put the browser and the coding side by side please. So that you don't have to jump between the two. The tutorial was awesome thank you

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

    you forgot to mention align-self property ,btw nice video!

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

    Well, I don't know what I'm doing it's wrong. After 10:21 isn't the same as yours, haven't this space in center and all the paragraphs is side by side

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

    love the real time view

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

    Thank you
    Just subscribed

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

    How can I get the real time view as yours?

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

    201 episodes in and i feel I have learned more than what I learned in high school

  • @kaustinn6817
    @kaustinn6817 7 лет назад

    Do you think you can show how to make something fit the screen, because when i put the width and height at 100% there's still space.

    • @Dani_Krossing
      @Dani_Krossing  7 лет назад

      It is because you haven't applied any reset styling to your website. I show how to do this in lesson nr 6 :)

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

    Finally someone was able to clearly explain what the heck this flexbox thing is all about. That said, using more examples - as opposed to words - would make your video even better ;)

  • @eypbal
    @eypbal 7 лет назад

    this is perfect.. thanks..

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

    If u use more of the realtimeviews then it would have been easier for beginners to learn it!:o rtv is a good way to show it

  • @babaganayahayaaminu5785
    @babaganayahayaaminu5785 7 лет назад

    Hello i would like to know the text/code editor you are using

  • @geraldfoushee
    @geraldfoushee 7 лет назад

    how to put text beside an image with flexbox without using float?
    The div, with a div inside is still a concept i am not yet clear on.

    • @Dani_Krossing
      @Dani_Krossing  7 лет назад

      If you want to place text next to an image, then you just need to create a small flex container, which then has the text and image inside of it. Here is an example:
      div {
      display: flex;
      flex-flow: row wrap;
      }
      Here is some text
      If you want multiple images and text after one-another, then just add more :)
      Here is some text
      Here is some text
      Here is some text
      Here is some text

    • @Dani_Krossing
      @Dani_Krossing  7 лет назад

      The next episode that I upload on Monday will also have an example of how to do this :)

    • @geraldfoushee
      @geraldfoushee 7 лет назад

      mmtuts did you say you wanted to see some of the projects we had made? Seeing our screw ups might give you more onsite on our knowledge base and how we understand.
      I am trying JavaScript also and although I understand it.... I still can't always do it or figure out what to do with it or why I need some of the things it can do. I figure that's because I really dont know it well enough yet..
      Feel better soon!

  • @daniellovett4952
    @daniellovett4952 7 лет назад

    Hi Dan, i was wondering how you got that real time view up. is it a special programme? Great video as always ;)

    • @Dani_Krossing
      @Dani_Krossing  7 лет назад

      Hehehe no I animated it in while editing the video :) using Adobe Premiere Pro

    • @daniellovett4952
      @daniellovett4952 7 лет назад

      Hehe, would be nice if someone created a programme showing that :)

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

    After watching this video go to flexboxfroggy.com/ for extra practice
    Your welcome and good luck!

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

    It would be a great example if you do a small website with flex box

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

    maybe with the browser, you could've assigned different colors to the text that correlates

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

    I wonder what justify-items would do ? At @19.30 minutes ? Anyways great tutorial 😀

  • @alexkim-soo2845
    @alexkim-soo2845 2 года назад

    162k web student were blessed by this video

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

    box-sizing is the way to go.

  • @الشاعر-أحمدرحيل
    @الشاعر-أحمدرحيل 4 года назад

    thanks thanks thanks

  • @bainapallisankar1193
    @bainapallisankar1193 7 лет назад

    sir, please do live project using html and css as well responsive designing.

    • @Dani_Krossing
      @Dani_Krossing  7 лет назад

      My previous project and the next video talks about responsive design :)

  • @outkasttarot2004
    @outkasttarot2004 7 лет назад

    What is this good for I'm new at web development

    • @Dani_Krossing
      @Dani_Krossing  7 лет назад +1

      It essentially replaces "float" in CSS, and allow us to customize HTML elements further.

    • @amarsinghania7080
      @amarsinghania7080 7 лет назад

      You can make navbars with it...make a unordered list and apply and done..all li elements will line up next to each other without dealing with floats and clear.
      Anywhere that you need boxes aligned next to each other. Have a bunch of divs inside a parent div and give the parent div a display of flex and you have a windows 8/10 style tiles on your website

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

    14:00

  • @Daniel20030
    @Daniel20030 7 лет назад

    First!

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

    please sir make a SVG animation toturail please sir

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

    Should this be #21?

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

    clicked on ur vid cuz i think ur cute

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

    I used to think flex box was cool until I found out the hard way the ADA compliance issues using it.

  • @JV-nx8xm
    @JV-nx8xm 6 лет назад

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

    I'm sorry but why do you always have to sing the last word of the end of every sentence?

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

    cool tool but it is complicated a little bit.

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

    I think i am going to wix.com...

  • @calibr0636
    @calibr0636 5 лет назад +1

    I just realized that when I generated a random paragraph, the first sentence was the same as yours.

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

    any indian here?
    Don't worry you are not alone...

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

    It would be a great example if you do a small website with flex box