10 CSS Pro Tips - Code this, NOT that!
A video on YouTube. In Tech, a Krater category.
Watch on YouTubeSummary by Krater
This video covers 10 modern CSS tips and techniques to write cleaner code and avoid outdated practices, concluding with ways to make CSS more enjoyable and maintainable.
From the video
Answers: What are some modern CSS tips and tricks to write cleaner code?
- CSS box model
- Firefox dev tools
- Flexbox layout
- CSS grid layout
- Media queries vs clamp
- Emoji class names
- Aspect ratio in CSS
- CSS custom properties and variables
- CSS calc function
- CSS counters
- Focus-within pseudo class
- PostCSS
What it concludes
- Learning the CSS box model helps everything else in the language make more sense.
- Firefox dev tools are generally superior to Chrome when it comes to CSS debugging.
- Flexbox allows creating flexible columns or rows anywhere in the UI.
- CSS Grid allows thinking about the big picture layout and obliterates much repetitive code.
- Using clamp can turn 13 lines of media query code into 1 line.
- Emoji characters can be used as class names in CSS instead of long container names for fun or visual cues in codebases.
Rate it, review it and add it to your lists in Krater.
Titles and thumbnails from YouTube. Krater isn't affiliated with, endorsed by or sponsored by YouTube or Google.