How to build a 2-column layout using flexbox | HTML/CSS

Поділитися
Вставка
  • Опубліковано 9 лис 2024
  • 🔥 My course: Responsive Design for Beginners! coder-coder.co...
    💻 Become a full-stack web dev with Zero to Mastery: academy.zeroto...
    Two column layouts are a super common pattern in website design. In this tutorial, you'll learn how to build a responsive two-column layout using flexbox!
    Source code on Codepen: codepen.io/the...
    Music: Radiant Vibes by Harris Heller
    • Radiant Vibes
    _____________________________________
    SUPPORT THE CHANNEL
    ⭐ Join channel members and get perks: / @thecodercoder
    👏🏽 Hit the THANKS button in any video!
    🎨 Get my VS Code theme: marketplace.vi...
    WANT TO LEARN WEB DEV?
    Check out my courses:
    🌟 Responsive Design for Beginners: coder-coder.co...
    🌟 Gulp for Beginners: coder-coder.co...
    RECOMMENDATIONS
    ⌨ My keyboard-- get 10% off with code THECODERCODER -- vissles.com/?r...
    💻 Other gear -- www.amazon.com...
    📚 My Favorite Books -- coder-coder.co...
    📺 My Favorite Courses -- coder-coder.co...
    🔽 FOLLOW CODER CODER
    Blog -- coder-coder.com/
    Twitter -- / thecodercoder
    Instagram -- / thecodercoder
    #webdevelopment #coding #programming

КОМЕНТАРІ • 48

  • @starterdev
    @starterdev 4 роки тому +11

    I love your pronunciation, it's outstanding

  • @codecrumbs
    @codecrumbs 4 роки тому +4

    Loved it, you broke it down really well. Looking forward to the grid one!

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

      Thanks so much! The next video should be a fun one to make too 😁

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

    watching this doesn't make me feel guilty, very informative!!

  • @taydvon
    @taydvon 3 роки тому +2

    You’re amazing at explaining these concepts. Thank you so much!

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

    finally, i found @thecodercoder channel. thank you for sharing

  • @3isley133
    @3isley133 Рік тому

    Thank you for explaing this! THis Help me a lot !!

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

    You're an angel this is what I needed wooo hoooo
    Edit: your theme is so nice and vibrant I wish I started with vs but I cant move from atom lol

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

      You can always start trying it out! :)

  • @theREALESTrealistUNPOPULAR
    @theREALESTrealistUNPOPULAR 9 місяців тому

    youre a savior

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

    too clever too smart thanks for help me understand the flexbox properties and usage

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

    Very well explained. Thank You.

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

    Oh wow! I have been enjoying your videos and I just realised I haven't subscribed yet. I have done it now. Thank you for making this tutorial simple to digest.

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

    I'm always hit a thums up then strat to see your videos ❤️

  • @bronnieg-beyondtheblockcha2830
    @bronnieg-beyondtheblockcha2830 3 роки тому +2

    Your content is amazing and so helpful, thank you for sharing your knowledge!

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

    please make a video on emmet shortcuts, i heard emmet first on your videos. I googled emmet and found a startling array of shortcuts - too much for a newbie, although now ive watched the video i see you using them fairly constantly... thanks for the video...

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

      Thanks for the suggestion! I'll definitely add it to the list 👍

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

    thanx for explain this way to work. It helps me!

  • @rncongi6641
    @rncongi6641 3 роки тому +2

    Love the tutorial, I'm running into an issue with the @media query. When I add in the query, I'm never getting the flex display, both boxes are on top of each other even after adjusting size of window. Any suggestions?

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

      I know this comment is like 2 years old and I'm sure you figured it out, but for anyone else passing by: I have no idea how she got it to work that way (not sarcastic or judgmental, I'm not great at this kind of thing so I genuinely don't know). I could only get it to work if I put the media tag on the outside instead of the inside.
      @media (min-width: 900px) {
      .flex-container{
      display: flex;
      }
      }
      Hope that helps someone!

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

    Amazing video. I was able to follow all along up until the very end, where I ran into an issue with the @media query. When I write out
    .flex-container {
    @media (min-width: 43.75em) {
    display: flex;
    }
    }
    I get the error message "Invalid Property Name" when inspecting the Rules in Firefox. Any advice on how to troubleshoot this?

    • @TheCoderCoder
      @TheCoderCoder  4 роки тому +8

      Are you using SCSS or CSS? The above example is how you can write it in SCSS. It will be invalid in CSS. For CSS the @media rule needs to come first, and the .flex-container nested in it. Hope this helps!

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

    hello. great video. do you do a live mentorship?

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

    Oh, you a coder CODER!?

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

    Thank you. your amazing.

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

    Which extension you are using for this white text .

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

    I'm learning Flexbox and playing around with it... but something is driving me nuts: I have a flex-container and inside an image and a paragraph, when I set the flex-container to display:flex the image blows up to a huge size and the paragraph is all squashed up in a tiny narrow column... what's going on? what is making the image huge when all I've done is set the parent containter to display:flex... ???

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

    How can I link web pages to flex container & replace the Main Content & Sidebar paragraphs?
    I have home, about, activity, service, contact links above flex contrainers and wanna display them on both flex containers. Thanks

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

    How would you fit an image to the left of the first section's text And have it 'jump' above this text when on a mobile? I can do it, just about, with media queries, but flexbox seems to be good with simple contents, ie, not text and images, but I hope I'm wrong on this!

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

    Any tutorial about SAAS?

  • @Wintry_j
    @Wintry_j 3 роки тому +2

    So clickbait damn it’s suppose to be beginner friendly trying to make a website but can’t cause I’m using css not scss and make it impossible to understand it

  • @mr.thomaswaffles6700
    @mr.thomaswaffles6700 3 роки тому

    Excuse me, how you make a sidebar on top of a sidebar?

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

    thanku

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

    I download the Kite and also in VScode when I try this code it and watch it live it's nothing change and it appears folder instead of html

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

    nope - couldn't get this one to work :-(
    It's unclear if you created the dist folder or if its propagated by live sass compiler like the style.css is.
    I even deleted the code I had typed and copy/pasted from the codepen. no joy.
    uninstalled the extension and re-installed the extension but nothing just script/text from Index.html - frustrating as it was such a good video tutorial

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

    which theme are you using

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

      Dark+ Materials but I tweaked the colors a bit

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

    👌🏻

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

    Kobayashi San

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

    How to make it stack 18:57.

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

    Is your husband/boyfriend is graphic designer expert? 🤔

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

      Basically

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

      And video editing/animation, altho I actually edited this one 😂

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

    I can't connect the CSS to the index. I see that the index header it link to style.css. But when opened in VSC it is labeled as style.scss.

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

      Make sure the Live Sass extension is running, and check that it's generating a style.css file in your project. By default it will create it in the same location as style.scss, but in the video I had customized it so it generated it in the dist folder.