Kevin Powell
Kevin Powell
  • 791
  • 83 661 127
Avoid these 5 beginner CSS mistakes
Check out CSS Demystified 👉 cssdemystified.com/?
Here are some common mistakes I see beginners make in their CSS, and a big thank you to Geoff Graham with helping me make this list!
My video on the dumb mistakes I keep making: czcams.com/video/GWkMYvoCXyQ/video.html
⌚ Timestamps
00:00 - Introduction
00:30 - Nothing wrong with making mistakes
01:05 - Collapsing margins
03:58 - Working with collapsing margins
06:20 - Over-reliance on positioning
08:18 - Containing blocks
11:50 - CSS Demystified
12:28 - Over-reliance on flex or grid
15:52 - Named colors
18:12 - IDs as selectors
#css
--
Come hang out with other dev's in my Discord Community
💬 discord.gg/nTYCvrK
Keep up to date with everything I'm up to
✉ www.kevinpowell.co/newsletter
Come hang out with me live every Monday on Twitch!
📺 www.twitch.tv/kevinpowellcss
---
Help support my channel
👨‍🎓 Get a course: www.kevinpowell.co/courses
👕 Buy a shirt: teespring.com/stores/making-the-internet-awesome
💖 Support me on Patreon: www.patreon.com/kevinpowell
---
My editor: VS Code - code.visualstudio.com/
---
I'm on some other places on the internet too!
If you'd like a behind the scenes and previews of what's coming up on my CZcams channel, make sure to follow me on Instagram and Twitter.
Twitter: KevinJPowell
Codepen: codepen.io/kevinpowell/
Github: github.com/kevin-powell
---
And whatever you do, don't forget to keep on making your corner of the internet just a little bit more awesome!
zhlédnutí: 27 900

Video

It's time for a change...
zhlédnutí 71KPřed 9 hodinami
If you’re interested, you can check out Beyond CSS here: www.beyondcss.dev/ or the full catelogue of my courses here: kevinpowell.co/courses #css Come hang out with other dev's in my Discord Community 💬 discord.gg/nTYCvrK Keep up to date with everything I'm up to ✉ www.kevinpowell.co/newsletter Come hang out with me live every Monday on Twitch! 📺 www.twitch.tv/kevinpowellcss Help support my cha...
A flexbox trick to improve text wrapping
zhlédnutí 110KPřed 21 hodinou
Checkout iCodeThis 👉 icodethis.com/?ref=kevin 🔗 Links ✅ My finished version: icodethis.com/modes/design-to-code/52/submissions/291888 ✅ ICodeThis: icodethis.com/?ref=kevin ✅ I have a 4-hour long course that deep dives flexbox: flexboxsimplified.com Disclaimer: Some of the links above might be affiliate links, which means that I'll receive a commission in case you like and decide to purchase the...
JavaScript var, let, and const explained
zhlédnutí 19KPřed dnem
Learn more from Chris 👉 gomakethings.com/kevin-powell/ 🔗 Links ✅ The source code from this video: gist.github.com/cferdinandi/975fbf849510d0fa5cc49483f34b29a8 ✅ More from Chris: gomakethings.com/kevin-powell/ ⌚ Timestamps 00:00 - Introduction 00:47 - The basics of var 01:22 - The problem with var 03:55 - Comparing var to CSS selectors 04:41 - let 06:07 - const 07:04 - You can change a const, bu...
23 CSS features you should know (and be using) by now
zhlédnutí 53KPřed 14 dny
Links to all the demos we used are below 👇 Huge thanks to Adam Argyle for joining me with this one! Make sure to follow him! nerdy.dev/ - Twitter: argyleink - Mastodon: front-end.social/@argyleink 🔗 Links :focus-visible codepen.io/argyleink/pen/YzMjmjR :focus-within - codepen.io/kevinpowell/pen/abxaZyz & codepen.io/kevinpowell/pen/jONomrd @media (hover) codepen.io/argyleink/pen/oNOP...
What would you call this layout?
zhlédnutí 31KPřed 14 dny
Read the full artcile here 👉 webkit.org/blog/15269/help-us-invent-masonry-layouts-for-css-grid-level-3/ and Chrome has put out an alternate proposal I didn't mention in the video, which has the opposite point of view: developer.chrome.com/blog/masonry 🔗 Links ✅ The full article: webkit.org/blog/15269/help-us-invent-masonry-layouts-for-css-grid-level-3/ The alternate proposal by the Chrome team:...
I never thought of using CSS animations like this before!
zhlédnutí 63KPřed 21 dnem
Looking to step up your CSS? I have free and premium courses: kevinpowell.co/courses? 🔗 Links ✅ Start here: codepen.io/kevinpowell/pen/BaEOwzo ✅ Finished version: codepen.io/kevinpowell/pen/ExJebPz ✅ Mattew Morete’s Codepen: codepen.io/matthewmorete/pen/KKYeYdd ✅ Ana Tudor’s Codepen: codepen.io/thebabydino/pen/gOqYdJd?editors=1010 ✅ The button video: czcams.com/video/XJt2_NNnRms/video.html ✅ Th...
Write less CSS by taking advantage of inheritence
zhlédnutí 21KPřed 21 dnem
CSS Demystified 👉cssdemystified.com? 🔗 Links ✅ Other HTML & CSS tips for beginners: czcams.com/play/PL4-IK0AVhVjMGPUlxEEUuHot89EcPyCY_.html ⌚ Timestamps 00:00 - Introduction 00:35 - What we’ll be starting with 01:20 - Apply general typography styles to the html or body element 04:20 - Overwriting inherited properties 05:29 - Using inheritance in more specific areas 06:45 - Why links don’t inher...
Is CSS getting harder to learn?
zhlédnutí 16KPřed 21 dnem
Check out the full interview 👉 czcams.com/video/k_BKDy_dRgE/video.html Una's website: una.im Give Una a follow on Twitter: czcams.com/users/unakravets #css Come hang out with other dev's in my Discord Community 💬 discord.gg/nTYCvrK Keep up to date with everything I'm up to ✉ www.kevinpowell.co/newsletter Come hang out with me live every Monday on Twitch! 📺 www.twitch.tv/kevinpowellcss Help supp...
Fun button effect with HTML, CSS & JS
zhlédnutí 20KPřed měsícem
Fun button effect with HTML, CSS & JS
How I find and debug issues in my CSS
zhlédnutí 24KPřed měsícem
How I find and debug issues in my CSS
Write less code with these 5 CSS tips
zhlédnutí 41KPřed měsícem
Write less code with these 5 CSS tips
These CSS features give us more control on the cascade and specificity
zhlédnutí 18KPřed měsícem
These CSS features give us more control on the cascade and specificity
Create a diamond grid with CSS (with a bonus animation)
zhlédnutí 44KPřed měsícem
Create a diamond grid with CSS (with a bonus animation)
Animate nav on scroll - CSS-only & easy to customize
zhlédnutí 45KPřed měsícem
Animate nav on scroll - CSS-only & easy to customize
Dynamic horizontal scrolling based on the amount of content
zhlédnutí 28KPřed měsícem
Dynamic horizontal scrolling based on the amount of content
How to take control of Flexbox
zhlédnutí 85KPřed měsícem
How to take control of Flexbox
Make position absolute work with you, not against you
zhlédnutí 24KPřed měsícem
Make position absolute work with you, not against you
Create a cool bubble zoom effect with CSS
zhlédnutí 32KPřed měsícem
Create a cool bubble zoom effect with CSS
This changed how I use media queries
zhlédnutí 41KPřed 2 měsíci
This changed how I use media queries
Create an animated, circular progress bar
zhlédnutí 39KPřed 2 měsíci
Create an animated, circular progress bar
Front-end dev takes on a CSS Battle
zhlédnutí 21KPřed 2 měsíci
Front-end dev takes on a CSS Battle
A simple CSS solution to select ranges of content
zhlédnutí 32KPřed 2 měsíci
A simple CSS solution to select ranges of content
Can I clone this fun effect from CSS Day using modern CSS?
zhlédnutí 34KPřed 2 měsíci
Can I clone this fun effect from CSS Day using modern CSS?
A simple mistake that can screw up your light/dark theme (and how to fix it)
zhlédnutí 39KPřed 2 měsíci
A simple mistake that can screw up your light/dark theme (and how to fix it)
Using currentColor with color-mix is amazing
zhlédnutí 47KPřed 2 měsíci
Using currentColor with color-mix is amazing
The background values no one knows about
zhlédnutí 41KPřed 2 měsíci
The background values no one knows about
Can I recreate this tucked-corner photo effect with CSS?
zhlédnutí 28KPřed 3 měsíci
Can I recreate this tucked-corner photo effect with CSS?
Is this a good idea?
zhlédnutí 29KPřed 3 měsíci
Is this a good idea?
Use this instead of media queries or container queries
zhlédnutí 38KPřed 3 měsíci
Use this instead of media queries or container queries

Komentáře

  • @mixxxer
    @mixxxer Před hodinou

    I’m more intrigued with these variable values. Can css vars be updated directly with js???

  • @SquamishMusqueam
    @SquamishMusqueam Před hodinou

    Thx!

  • @anmolthedeveloper
    @anmolthedeveloper Před 2 hodinami

    Class over kid get the fu*k outta here 😂

  • @salentipy
    @salentipy Před 3 hodinami

    Another great video!!

  • @cloverconnect3911
    @cloverconnect3911 Před 3 hodinami

    you're an shitty at explaining

  • @Sealis04
    @Sealis04 Před 3 hodinami

    Then there's me, who tries every center CSS till it aligns then just uses that permanently.

  • @tyson_west2556
    @tyson_west2556 Před 3 hodinami

    Me starring at the weird looking CSS selectors

  • @salentipy
    @salentipy Před 3 hodinami

    I FINALLY know how flex-shrink and flex-grow work! 👏👏👏👏👏👏😃

  • @crooker2
    @crooker2 Před 4 hodinami

    "make this misatke". Ahh... I see what you did there.

  • @salentipy
    @salentipy Před 4 hodinami

    Just wanted to say how much I'm enjoying your videos, Kevin. You're a great teacher!! :)

  • @JawaCodePro
    @JawaCodePro Před 4 hodinami

    Thanks

  • @kebunkarta6257
    @kebunkarta6257 Před 7 hodinami

    Thank you

  • @Sagan1995
    @Sagan1995 Před 7 hodinami

    Is the overflow really an issue with "whitespace:nowrap"? I mean there isn't really a screen size that can get too narrow to not contain the short text in a button.

  • @dummydon-hy2on
    @dummydon-hy2on Před 8 hodinami

    i really love this channel

  • @sargaa8471
    @sargaa8471 Před 8 hodinami

    what's happening with the webcam ?

  • @severgun
    @severgun Před 9 hodinami

    I hope one day there will be CSS4 without default predefined styles on elements

  • @dogoku
    @dogoku Před 9 hodinami

    I always teach my juniors, to use !important for defence not for offense

  • @martybando1668
    @martybando1668 Před 10 hodinami

    CZcams has to create a way for us to save or bookmark shorts.

  • @hiagooliveira6510
    @hiagooliveira6510 Před 10 hodinami

    The most useful place I use overscroll behavior contain is on horizontal scrolls. If the user is on a laptop with a touchpad it can be very annoying to try and scroll all the way back to the start (think a table with many columns) and you end up going back to the previous page because the browser detects the back gesture

  • @jaortiiss
    @jaortiiss Před 11 hodinami

    06:46 - GreenSock Plugins 08:06 - Customisation 09:30 - hamburger.js

  • @bobmonsour
    @bobmonsour Před 13 hodinami

    Your explanation of parent vs child control for grid vs flexbox is a great way to think about which one to use, which has been a struggle for me. Thanks!

  • @jenstornell
    @jenstornell Před 14 hodinami

    Kind of weird name. focus-visible makes the state invisible.

  • @OscarF20
    @OscarF20 Před 15 hodinami

    It's funny I just discovered this today with the developer tools, it ia very useful!

  • @sanampakuwal
    @sanampakuwal Před 16 hodinami

    CSS Guru is fully back!!

  • @invictuz4803
    @invictuz4803 Před 16 hodinami

    Love these videos, tackling the real issues!

  • @JeffreyHolden-zj2hb
    @JeffreyHolden-zj2hb Před 17 hodinami

    How do I get those fancy squiggly brackets you have?

  • @dweebyllo8615
    @dweebyllo8615 Před 21 hodinou

    At the risk of sounding lamen, what software are you using for coding Kevin. I don't recognise that terminal

  • @kaustavroy6542
    @kaustavroy6542 Před 21 hodinou

    You are an awesome teacher. Tried to learn the same stuff from other channels , but here got more than that.

  • @HARUN-AKSU
    @HARUN-AKSU Před 22 hodinami

    I saw it on Chrome Developer CZcams channel and used it today. It is useful

  • @isayaetando7268
    @isayaetando7268 Před 22 hodinami

    CSS GOAT

  • @caninan652
    @caninan652 Před 22 hodinami

    Hi Kevin. First of all, I want to say that you give great information. I am grateful to you for this. However, in real projects, images arrive dynamically and optimization processes are mostly done on the server. Do we really have to use these when writing frontend?

  • @sheriffderek
    @sheriffderek Před 22 hodinami

    I always knew what collapsing margins were, but I've also always used a reset. They are a nice default if you're using the default browser styles (and have no access to CSS), but otherwise, _just skip it_ and you'll never run into any situations where you ever have to think about them again.

  • @imariohernandez
    @imariohernandez Před 23 hodinami

    This is a great collection of tips. I am curious, could you show an example of expanding the background of an element to be 100vw using border-image? I am trying all kinds of ways and can't seem to be able to expand my element's background full width (outside of its container). Thanks guys.

  • @KeithGrant
    @KeithGrant Před 23 hodinami

    I think it should _not_ be part of grid, specifically for teachability reasons. I don’t think most developers learn all of grid. Many learn `grid-template-areas` and basic column sizing and stop there, but `grid-template-areas` does not transfer to masonry. So now, to learn masonry, they have to do a deeper dive into grid. THEN they have to do a dive into masonry to figure out which grid principles do and do not apply. I think that makes masonry less accessible to a less experienced developer. Whereas a separate display property means you can learn it directly, and as a bonus nearly all of that will also apply to grid. Or, if they already know grid thoroughly, it’s still a reasonable lift to learn which grid properties/concepts they can apply to masonry.

  • @lilrex2015
    @lilrex2015 Před dnem

    I saw this when it first got released and always thought, "thats cool ill have to remember that for later", well today is later and i forgot who told me this but luckily i found this video again so ty.

  • @chrisicotec7652
    @chrisicotec7652 Před dnem

    sometimes a mistake can be a good thing, happy mistakes are cool.... in all the years ive been tinkering with css i still dont understand how to use grid properly

  • @marie-christinedesplat1657

    You deserve a thousand times to take care of yourself and your family, you have already offered the community a gold mine of videos. Thank you for your way of thinking outside the box and presenting new features in CSS in a simple and clear way. Thank you for continuing to publish, a new video per week is great. This gives us time to integrate what you introduce into our content production.

  • @doum5792
    @doum5792 Před dnem

    And now you also need to handle this on resize otherwise if mobile menu height changes on mobile, you might scroll-padding the wrong value.

  • @jbugahod
    @jbugahod Před dnem

    short, simple and very useful!

  • @111earthangel5
    @111earthangel5 Před dnem

    Thank you for the great video. I struggle with positioning when I want to overlay content on top of each other. The designs are never responsive. Can I overlay content with z-index using grid or flexbox ? Or is there a way to make my code responsive while using positioning without having to use a million breakpoints?

  • @Flobyby
    @Flobyby Před dnem

    i thought it was going to be the change from hiding all actual information about the contents of a 20 minutes video in the title or thumbnail :( I used to look at your video often and loved them before you made that choice, now I can't lose 5 minutes for you to get to the point and find out that you're talking about something I already know this time.

  • @jesseshugart
    @jesseshugart Před dnem

    this is huge! Thanks Kevin

  • @f450fpv7
    @f450fpv7 Před dnem