The Only CSS Layout Guide You'll Ever Need

Поделиться
HTML-код
  • Опубликовано: 8 фев 2025
  • CSS gets real messy but people insist on continually approach css with a chaotic approach. In this video, I go through a step by step process of how you should approach css layouts, an exact strict guide on how you can approach it without leading to css chaos. As someone who experienced a lot of chaotic and poorly maintained css codebases, this guide will truly help you find a good process for laying out your entire website
    Links:
    piratefsh.gith...
    dev.to/ziizium...
    stackoverflow....
    -----------
    Subscribe to my channel: / @edrohdev
    for more web development
    -----------
    Who is EdRoh? I'm a lead engineer for a publicly traded company and have been developing for a decade now.
    I'm here to provide you in-depth tutorials by simplifying difficult concepts and more importantly, getting your hands dirty by building production level projects with ease to impress your future/current employer or clients.

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

  • @AbhimanueVBiju
    @AbhimanueVBiju Год назад +67

    Thinking in boxes is what I found out on my own, I had so much trouble with layouts until that specific point where I started to think in boxes.. It made my life easier! I wish more and more people who are in this just started out their dev journey knows about it.

    • @MohamedAhmed-mp6qr
      @MohamedAhmed-mp6qr 9 месяцев назад +3

      me too, i always think in boxes like a can already the see the box model of any tag or div. i already know where the margin,padding and positions are taking place. this helps me understand what i am working with

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

      i remember being on Twitter and seeing the different panes as these separate entities all related but different and was like...ahhh

  • @faithwithmandy
    @faithwithmandy 9 месяцев назад +130

    For someone that knows NOTHING about ANYTHING YOU'RE TALKING ABOUT, I was able to follow and pick up a few things. I'm interested in coding and building a website but I have no clue whatsoever. But THE FACT that I could understand what you're saying, says a lot about your teaching skills. I'm impressed.

    • @juanamuom2125
      @juanamuom2125 Месяц назад

      let me build you a website lets connect on X app

  • @adymorris7347
    @adymorris7347 10 месяцев назад +87

    Finally....a CSS Layout Guide I understand! Thank you, Sir.

  • @Brezanova
    @Brezanova Год назад +32

    Finally a very clear and concise explanation for someone staring at a blank page trying to figure this out lol Thank you!

  • @Chae-dudu
    @Chae-dudu 10 месяцев назад +81

    the extension name is "google pesticide"

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

      on any browser extension marketplace, just write "pesticide"

    • @jasonsiew23
      @jasonsiew23 8 месяцев назад +4

      Omg thank you so much for posting this!

    • @ajaxajax-dw3rb
      @ajaxajax-dw3rb 5 месяцев назад

      you are right

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

      thanks!

  • @Squatrecords
    @Squatrecords Год назад +16

    Everything you done in this video is absolutely amazing! thanks for the work you placed in explaining and demonstrating so well!

  • @kidyoshi007
    @kidyoshi007 9 месяцев назад +10

    THIS IS THE BEST CSS VIDEO I HAVE EVER SEEN IN MY LIFE !!! this the the most perfect video explanation of what CSS is! BEAUTIFUL

  • @argh5665
    @argh5665 9 месяцев назад +30

    00:00 Part 1 - thinking of css
    3:01 Part 2 - thinking of flexbox
    9:59 Part 3 - thinking of grid

  • @toesiluutaga
    @toesiluutaga 6 месяцев назад +5

    After spending two solid hours up to midnight going back and forth , back and forth over and over again trying to follow and understand, I think I agree with you sir, CSS is a real mess. But there is something special about you that not many people have; the ability to make somebody like me not to give up easily. Thanks a lot.

  • @emiliormclimbing9508
    @emiliormclimbing9508 27 дней назад +1

    Finally, someone who understands enough to explaining it in a simple way. Marvelous!!!

  • @dchumik
    @dchumik 5 месяцев назад +4

    Absolutely OUTSTANDING!! As a beginner I have watched a number of videos on HTML and CSS and this just made my life a piece of cake, with double frosting 😁

  • @edwardnapatalio853
    @edwardnapatalio853 Год назад +183

    Epic thumbnail 😂

    • @eazyv9172
      @eazyv9172 10 месяцев назад +8

      thumbnail got me rollin 😂

    • @MAX-yd2bs
      @MAX-yd2bs 10 месяцев назад +5

      Yea he totally got me

    • @dragonball41876
      @dragonball41876 9 месяцев назад

      😂

  • @zerken7220
    @zerken7220 7 месяцев назад +9

    I just started coding and I was struggling with understanding CSS. This is some God sent content broo

  • @kbonline5473
    @kbonline5473 Год назад +9

    This is the best css tutorial to understand the fundamentals of layout

  • @davidmesaros9733
    @davidmesaros9733 4 месяца назад +1

    I had a hard time understanding CSS but this video simplified the concept of positioning. I found it really hard to wrap around positioning concepts

  • @rajshailey92
    @rajshailey92 Год назад +12

    This was an absolute gem of a video. Thank you for sharing such fundamental concepts.💖

  • @mooglglius
    @mooglglius 6 месяцев назад +3

    That flex cheatsheet website is super helpful! Awesome video!

  • @metalrunsit
    @metalrunsit 9 месяцев назад +3

    You're a really great speaker. Most sensible and direct too, you're amazing.

  • @yf4jm
    @yf4jm 6 месяцев назад

    This explains 80% of what you need to know in css . i never knew when i need to even use grid of flex i thought flex can do all the job. I dont usually comment on tutos but this video is truly that good and i have understanding of how complexe clean interactive layouts are made. Thanks so much brother

  • @harithoppil7
    @harithoppil7 10 месяцев назад +2

    Saved a ton of time! n thanks for the Smart Philosophy of using minimum to do maximum.. thus not getting overwhelmed

  • @RockTheCage55
    @RockTheCage55 Месяц назад

    Thanks Ed this has beyond excellent. Didn't think i could learn so much in such a short amount of time.

  • @jikaikas
    @jikaikas Год назад +2

    ur the only youtuber who Im glad I learned css from, everyone teaches it so bad so much fluff you get right into it

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

    The way you design your classes for reusability is really smart and opened my eyes to a way more efficient way of writing css.

  • @antonio_carvalho
    @antonio_carvalho Год назад +2

    Excellent video! Here's a tip: use a muffler on your microphone to reduce pops from words like "Pixel Perfect".

  • @maikeltoxix1716
    @maikeltoxix1716 8 месяцев назад +1

    Thank alot! im just starting programming a website, and this absolutely helped me think in better structuring

  • @darkastically
    @darkastically 11 месяцев назад +1

    Thank you!! I'm a backend dev learning CSS and javascript for "fun". You saved my a**.

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

    My god it finally makes sense to me! No one has ever described the process like that to me. Thank you sir!

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

      when he sais blocks, does he mean boxes?

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

      @@TopNotchVideosYT I would say yes. Chunks of text are referred to as blocks. It might help to visualise the layout as actual physical blocks being stacked on one another. That is certainly one of the techniques I'll be using going forward.

  • @kopilkaiser8991
    @kopilkaiser8991 6 месяцев назад

    Absolutely lovely tutorial. I just love watching a great programming TUTORIAL :D I'm like addicted to learning technologies and techniques to do programming and advance my knowledge. Liked, Subscribed, and Commented your video. You have earned it absolutely in every way. You are a great teacher and able to convey knowledge smoothly and simply which is needed to learn all of these difficult technologies.

  • @AnsonHunnell
    @AnsonHunnell Год назад +2

    great video
    this is probably my favorite software engineering channel

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

    Great job man!!! Thank you for these fundamentals! And the music at the end is like i defeated a chapter boss! :D so rewarding :)

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

    Important stuff, thanks. That flow talk at around 5:20 I would call ’structural layout’, getting a little closer to the conceptual core.

  • @junior.santana
    @junior.santana 8 месяцев назад

    That was incredibly well explained, thanks. As you said there are so many properties, especially for grid, and I've tried to learn them one-by-one but the best approach is what you did, studying each scenario and purpose. Also, I never heard of flex-basis and will definitely start using it, I had some funny issues with flexbox+width recently, probably should be using this property instead

  • @jagannathps
    @jagannathps 10 месяцев назад +1

    this is golden youtube content

  • @sparta117corza
    @sparta117corza 3 месяца назад

    This was the video I was searching for. Thank you! 🙇‍♂

  • @lilyshevchenko7048
    @lilyshevchenko7048 9 месяцев назад +1

    Did not expect to get awesome laughs, as well as content. You're hilarious. Thanks :D

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

    thank you, finally an efficient way to teach how grids work.

  • @achyutkayastha4248
    @achyutkayastha4248 6 месяцев назад

    helped a lot in revising and enhancing the concepts , thank you!

  • @SamuTheFrog
    @SamuTheFrog 6 месяцев назад +5

    I don't know shite about CSS. In fact, it's so unknown to me I thought you were talking about Counter Strike Source until I clicked and heard the first few words.

  • @AntonioRonde
    @AntonioRonde Месяц назад

    Flexbox
    Grid
    Pattern: relative parent, absolute child
    Thank you for the video

  • @Elena_Moralez
    @Elena_Moralez 6 месяцев назад

    This tutorial is soooo informative! Explained very good and understandable. Thanks a lot.

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

    I think only this channel show realworld and professional case you will find in your world

  • @joseluis7118
    @joseluis7118 2 месяца назад

    You have a great way of explaining things, thanks!

  • @FrancoisLampron
    @FrancoisLampron 10 месяцев назад +1

    Thank you so much for such concise and funny explanations!

  • @FrancoisLampron
    @FrancoisLampron 10 месяцев назад +1

    Thank you so much for concise and funny explanations !

  • @GDNachoo
    @GDNachoo Месяц назад

    I'm a backend guy, I think that should say enough about how good I am at CSS
    It's overwhelming, the thousands of properties, the tutorials that don't feel like are actually helping, it annoys me how so much material doesn't focus on the basics and how to think in CSS nearly as much as other programming languages
    (Well CSS is not much of a language but I digress)

  • @freechain
    @freechain 2 месяца назад

    Your voice is so perfect, good tutorial, thanks

  • @jezza9774
    @jezza9774 Год назад +3

    Man I feel old seeing xanga, early 2000s in middle school vibes lmao great explanation video, helped me understand positioning a lot better as a visual learner 😅

  • @dc33333
    @dc33333 Год назад +1

    Good video Ed!!! Great speaker and video production.

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

    Thank you for making this video. I now understand how were used it

  • @joelpww
    @joelpww 10 месяцев назад +390

    I was promised a pikachu. Thoroughly disappointed

    • @ceribrolord3893
      @ceribrolord3893 8 месяцев назад +9

      ☹️

    • @NotKyleChicago
      @NotKyleChicago 7 месяцев назад +4

      Thumbnail isn't in the video?

    • @vine.as0
      @vine.as0 6 месяцев назад +12

      Thank you, I won't spend my time on this video anymore

    • @terrypark3690
      @terrypark3690 4 месяца назад +1

      Ty useful comment

  • @cryptofelix5242
    @cryptofelix5242 9 месяцев назад

    This video got me a lot of things ordered that I knew already!

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

    Incredibly well explained!

  • @deldridg
    @deldridg 10 месяцев назад +1

    Lovely work and thanks mate. Very helpful and has fast-tracked a stage of my project very effectively. Cheers from Sydney - Dave

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

    I use Quickly CSS Grid to build HTML CSS, and it works perfect :)

  • @JawsoneJason
    @JawsoneJason 11 месяцев назад +1

    There are plenty of cases where flex and flex-wrap are the choice. The question is: do you need to align things in one dimension or two?

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

    Crazy value! Thank you for this!

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

    Theeeeese are great videos. You can also make more videos relating to what tech stack we should use, Like Nextjs, vs MERN, or pages vs app router, etc, etc

  • @bambinoesu
    @bambinoesu 8 месяцев назад +1

    It's good practice to use both, but I prefer grid

  • @josu_tv
    @josu_tv Год назад +1

    nice editting, well said explanation 👏

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

    The Chrome extension to highlight the elements is called 'Pesticide'.

  • @dc33333
    @dc33333 Год назад +2

    this is useful. Thanks Ed!!!

  • @mon0theist_tv
    @mon0theist_tv 10 месяцев назад +6

    Anyone got the Chrome extension at 1:59? EDIT: Nvm it's called Pesticide
    4:16 that looks like the identical layout of Monarch Money

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

    This is the best CSS video, and hilarious lol

  • @infini667
    @infini667 9 месяцев назад

    Thank you for the video! It's very good. I just wanted to suggest that you use a pop filter :)

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

    You mention that the 3 main props you need to know are:
    1. display
    2. justify-content
    3. align-items
    ..you then go into detail about justify-content and align-CONTENT, completely skipping align-items.

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

    This is so helpful! thank u so much!

  • @TimAyro
    @TimAyro 9 месяцев назад +8

    Me watching this video with my css filled with floats...

  • @bhoomisharma3802
    @bhoomisharma3802 9 месяцев назад

    I'm finding this channel right before my practical examinations..😢 on web development...😂 Are you kidding me! 😫😫 My project is trash as it is ..😫😫😫

  • @davidshanahan6081
    @davidshanahan6081 9 месяцев назад

    When you reference align-content at 7:08, I think you have confused it for align-items. Align-content is used when a row has wrapped.

  • @kloworman
    @kloworman 7 месяцев назад +1

    Kinda disappointed because there's no Pikachu but indeed it's the only layout guide I'll ever need

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

    Great work! Thanks man!

  • @hardikganatra2453
    @hardikganatra2453 Год назад +1

    Great video man !!!

  • @outpost31737
    @outpost31737 7 месяцев назад +1

    You don't need to use an implicit 12 column grid, besides it isn't responsive, much easier method is one line of code: grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); Adjust to your liking.

  • @benja303
    @benja303 9 месяцев назад +1

    - In Css you should be thinking in Boxes
    - Understand
    Margin
    Border
    Padding
    Content
    - Every element has a parent child relationship
    - Pixels and Floats are outdated

  • @munzutai
    @munzutai Год назад +1

    These are great explanations but please consider getting a pop filter. My subwoofer is popping like crazy.

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

    This was very helpful thank you!

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

    The Only CSS Layout Guide You'll Ever Need

  • @metaculos6068
    @metaculos6068 9 месяцев назад

    i owe you my life King

  • @JS-vw7to
    @JS-vw7to 6 месяцев назад

    Amazing explanation

  • @austin4855
    @austin4855 9 месяцев назад

    great lesson, ty! and thumbnail was so good i HAD to click.

  • @FurqanHun
    @FurqanHun 9 месяцев назад

    i understood flex easily i do use it tho didnt knew about it in detail, bu yes grid is terrifying would probably take more to to get familiar with

  • @ampermetre_
    @ampermetre_ 6 месяцев назад

    Thank you! It was very useful

  • @aniksaha8108
    @aniksaha8108 10 месяцев назад

    Thank you for this video!

  • @nikj1178
    @nikj1178 5 месяцев назад +1

    I am confused as to why you would use a grid in some of the shown examples, or why you would use a single giant grid instead of splitting it into smaller grids. For your 12x5 grid example, why not just split the whole thing into three rows, each being it's own grid. That way you could mostly avoid spans, and you wouldn't have to bother with "calculating" the specific grid size.
    Another worry of mine is what happens with most of the shown layout on different screen sizes. Do you just completely hide them and show a different layout?

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

    THis is amazing, thank you!

  • @vamoosTV
    @vamoosTV 6 месяцев назад +1

    What's the chrome extension you use? at 1:58... Great video!

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

    The whole video I've been focusing on your hair man, it's so unique. It feels unnatural.

  • @Tafa-ul
    @Tafa-ul 9 месяцев назад +2

    can anyone tell me what extension he was using when he was showing youtube box layouts

  • @eric55099
    @eric55099 6 месяцев назад

    Nice one bro

  • @UmairAli-i3o
    @UmairAli-i3o 4 месяца назад

    So much great thanks 🎉

  • @gumbilicious1
    @gumbilicious1 9 месяцев назад

    I hate messing with css, that is why I am here

  • @GeckoMaster369
    @GeckoMaster369 Месяц назад

    thank you man!

  • @кек-ш1р
    @кек-ш1р 10 месяцев назад

    Great video! thank you!

  • @Omar-dp8ob
    @Omar-dp8ob 10 месяцев назад +5

    Is this vanilla CSS ?

  • @long_codes
    @long_codes 2 месяца назад

    Good video about CSS layout, thank you 10:10

  • @iPocketz
    @iPocketz 9 месяцев назад +1

    "Only use float if you enjoy suffering" lmao

  • @willbarrett6204
    @willbarrett6204 Год назад +1

    Is a container just like or ? I can't seem to find any documentation on it.

  • @MrAviv555
    @MrAviv555 9 месяцев назад

    Amazing video!!
    Does anybody know the name of the chrome extension he chooses? I've been looking for something like that for a while now😅❤

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

    I see this question all over, and I can't find a clear answer with visual aids. How do we make the grid show itself in Chrome? This could be the solution I've been looking for so that I can properly center elements in a responsive way, but I can't make the grid visible regardless of what advice I follow. It's pretty difficult to believe that Google doesn't use its own browser to design its sites, but I'm starting to feel like maybe it doesn't because this seems to be an impossible task. I just don't want to keep repositioning items or settling for imperfections whenever I resize the browser window. I can center something in maximize, but then it's wayyyyyyyyyy off-center the more I horizontally shrink the window. I'm new to your content. Do you have a tutorial for this?
    It's the exact problem you described, but I don't have access to the solution. It's driving me crazy.

  • @anujmourya18_
    @anujmourya18_ 10 месяцев назад +3

    2:23 which extension