<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/tags/css/best-of/2021" -->

---
title: Best CSS posts of 2021 | daily.dev
description: The most upvoted CSS posts of 2021, curated by the daily.dev community.
canonical: https://daily.dev/tags/css/best-of/2021
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:url: https://daily.dev/tags/css/best-of/2021
og:type: website
og:site_name: daily.dev
og:title: Best CSS posts of 2021 | daily.dev
og:description: The most upvoted CSS posts of 2021, curated by the daily.dev community.
og:image: https://media.daily.dev/image/upload/s--VAY5ToZt--/f_auto/v1724209435/public/daily.dev%20-%20open%20graph
---

# Best of CSS — 2021

1. 1  
[](/posts/my-custom-css-reset-5w1hsb5j "My Custom CSS Reset")  
Article  
![Avatar of joshwcomeau](https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/4a121572d03c40a2bff9e8ed0f0792b5)Josh W Comeau · 5y  
My Custom CSS Reset  
This tutorial explains how to use your own custom CSS reset. It includes all of the little tricks I've discovered to improve both the user experience and the CSS authoring experience. We'll dig into each rule, and you'll learn what it does and why you might want to use it.  
366  
28
2. 2  
[](/posts/tailwind-css-v3-0-tailwind-css-knchiuxts "Tailwind CSS v3.0 – Tailwind CSS")  
Article  
![Avatar of hn](https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/hn)Hacker News · 5y  
Tailwind CSS v3.0 – Tailwind CSS  
Tailwind CSS v3.0 is here, bringing incredible performance gains, huge workflow improvements, and a seriously ridiculous number of new features. Every color out of the box, including all of the extended palette colors like cyan, rose, fuchsia, and lime, and fifty shades of grey gray. Colored box shadows for fun glow and reflection effects, and more natural shadows on colored backgrounds.  
309  
25
3. 3  
[](/posts/how-i-structure-html-for-better-seo-results-quwh15yzv "How I Structure HTML for Better SEO Results")  
Article  
![Avatar of gc](https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/gc)gitconnected · 5y  
How I Structure HTML for Better SEO Results  
Stephan Romhart explains how to use semantic HTML 5 tags for better machine readability. He also explains how he organize his CSS for websites without a framework. In his 20 years of web development experience, he’s developed a standard CSS approach for myself. He says that most websites can be built with the following boilerplate.  
236  
9
4. 4  
[](/posts/10-best-websites-for-practising-and-perfecting-front-end-development-nu2hgmtcm "10 Best Websites for Practising and Perfecting Front-End Development")  
Article  
![Avatar of jsPlainEnglish](https://media.daily.dev/image/upload/s--Dg5QTRuI--/f_auto,q_auto/v1686665538/logos/pe)JavaScript in Plain English · 5y  
10 Best Websites for Practising and Perfecting Front-End Development  
10 Best Websites for Practising and Perfecting Front-End Development. Muthu Annamalai Venkatachalam has compiled a list of the 10 best sites to practice your front-end skills. You will reinforce everything you have learned through tutorials and become a more competent front- end developer by using these websites.  
221  
11
5. 5  
[](/posts/learn-responsive-web-design-by-building-20-projects-a-major-freecodecamp-curriculum-update-9ot-2xnrh "Learn Responsive Web Design by Building 20 Projects – a Major freeCodeCamp Curriculum Update")  
Article  
![Avatar of freecodecamp](https://media.daily.dev/image/upload/t_logo,f_auto/v1628412854/logos/freecodecamp)freeCodeCamp · 5y  
Learn Responsive Web Design by Building 20 Projects – a Major freeCodeCamp Curriculum Update  
The Responsive Web Design Certification is the first of freeCodeCamp's 10 currently-live certifications. Instead of coding lessons, you'll learn concepts and syntax through a series of 15 practice projects + 5 certification projects. The full certification will take most web development beginners around 300 hours to complete.  
178  
8
6. 6  
[](/posts/defensive-css-tmz6xi81r "Defensive CSS")  
Article  
![Avatar of hn](https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/hn)Hacker News · 5y  
Defensive CSS  
Defensive CSS is a collection of snippets that can help you in writing CSS that is protected. Oftentimes, we wish that there was a way to avoid a certain CSS issue or behaviors from happening. This is built upon an article I wrote a while back called “The just in case mindset”  
156  
8
7. 7  
[](/posts/flexbox-cheat-sheets-in-2021-css-2021-abgptqlxt "FlexBox Cheat Sheets in 2021 || CSS 2021")  
Article  
![Avatar of devto](https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/devto)DEV · 6y  
FlexBox Cheat Sheets in 2021 || CSS 2021  
Here's a Tutorial & Cheat Sheet of everything you can do with CSS flexbox. Let's refresh Our CSS Flexbox Memory. The Flexbox architecture work? The flex-items are distributed along the Main Axis and Cross Axis. And, depending on the flex-direction property, the layout position changes between rows and columns.  
153  
15
8. 8  
[](/posts/the-ultimate-cheat-sheet-list-for-web-developers-dq615hjqi "The Ultimate Cheat sheet List For Web Developers")  
Article  
![Avatar of devto](https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/devto)DEV · 5y  
The Ultimate Cheat sheet List For Web Developers  
Cheat sheets are a great way to help you remember all the things you need to know about Web development. These cheat sheets include HTML, CSS, and JAVASCRIPT. Cheatsheets can also be used to teach you how to structure tables, lists, forms.  
145  
19
9. 9  
[](/posts/6-awesome-css-layout-generators-n3cv8p4-m "🔥 6 Awesome CSS Layout Generators")  
Article  
![Avatar of hashnode](https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/4a287b2e7cb5499bae863f8e7137cdb4)Hashnode · 5y  
🔥 6 Awesome CSS Layout Generators  
6 awesome CSS layout generators/tools that will help you in rapid prototyping and front-end development of CSS layouts for your projects. Quickly design web layouts, and get HTML and CSS code. Learn CSS Grid visually and build web layouts with this interactive CSS Grid Generator.  
141  
20
10. 10  
[](/posts/responsive-design-css-tips-osgsrngb8 "Responsive Design CSS tips")  
Article  
![Avatar of devto](https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/devto)DEV · 5y  
Responsive Design CSS tips  
Using em/percentage/rem instead of px, so that the text, images size adjust with respect to the device width. Flex-wrap - Using flexbox to align your HTML elements such as <div> etc. Media query - Media query should be used to set width and height according to the breakpoints.  
135  
12
11. 11  
[](/posts/10-google-chrome-extensions-you-should-use-as-a-developer-k1zjrq66h "10 Google Chrome Extensions you should use as a developer")  
Article  
![Avatar of devto](https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/devto)DEV · 5y  
10 Google Chrome Extensions you should use as a developer  
Here are some of the best Google Chrome extensions for developers. Extensions that make life easier, make you more productive, or perform an essential task better than a dedicated tool. As the vast majority of us use Chrome, it makes sense to consider Chrome extensions. Other browsers are available but Chrome is used by 62.6% of internet users.  
129  
14
12. 12  
[](/posts/building-a-video-chat-app-with-node-js-socket-io-webrtc-rwobpbgiy "Building a Video Chat App with Node.js + Socket.io + WebRTC")  
Article  
![Avatar of gc](https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/gc)gitconnected · 6y  
Building a Video Chat App with Node.js + Socket.io + WebRTC  
Building a Video Chat App with Node.js + Socket.io + WebRTC Taran Arora shares his tips on how to build a video chat app using JavaScript and NodeJS. It will also show you how to use PeerJS,WebRTC, and Nodemon to build the app.  
121  
7
13. 13  
[](/posts/skills-required-to-be-a-full-stack-developer-a-checklist--djilbesu "Skills required to be a full stack developer: a checklist")  
Article  
![Avatar of devto](https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/devto)DEV · 5y  
Skills required to be a full stack developer: a checklist  
The skills list required to be a full stack developer is long and it can be hard to know exactly what skills you need. The often shared online resource for this kind of thing is roadmap.sh but, while it is extensive, I think the amount covered here is too much to be helpful to new developers. I have my own list, it’s a bare minimum required skills list and it looks like this:  
120  
9
14. 14  
[](/posts/5-html-and-css-good-practices-tl7ikiwcl "5 HTML and CSS Good Practices")  
Article  
![Avatar of dz](https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/dz)DZone · 5y  
5 HTML and CSS Good Practices  
It is quite easy to find good practices for any technology, but unfortunately, the same cannot be said about HTML and CSS. I've made my list of 5 cases when you can create a user-friendly, or clumsy, interface using only HTML andCSS. The alt attribute is quite useful, but many developers don’t use it efficiently.  
118  
4
15. 15  
[](/posts/if-else-in-css-iozc-msr2 "if/else in CSS")  
Article  
![Avatar of devto](https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/devto)DEV · 5y  
if/else in CSS  
There are no conditional statements in CSS, but this may soon change with new @when and @else operator. Currently, the only way to perform a conditional statement was to use media queries. The new proposal looks much cleaner and very similar to many programming languages. It's not supported by any browser at this moment, it's not even listed on caniuse.com .  
117  
4
16. 16  
[](/posts/css-pixel-art-generator-xpsncbn77 "CSS Pixel Art Generator")  
Article  
![Avatar of dz](https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/dz)DZone · 5y  
CSS Pixel Art Generator  
Draw your pixel creations below, and then click "Generate CSS" to get your pixel art in CSS, which you can copy into your web pages. Sponsor Sponsor: Font Awesome 5 Pro, which was inspired by this article. For more information, visit the Font Awesome website.  
104  
9
17. 17  
[](/posts/my-honest-opinion-on-tailwind-css-n5-dwz2mo "My honest opinion on Tailwind CSS")  
Article  
![Avatar of hashnode](https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/4a287b2e7cb5499bae863f8e7137cdb4)Hashnode · 5y  
My honest opinion on Tailwind CSS  
Tailwind is a utility framework that can be used to optimize and speed up your development. Tailwind should not be used if you don't have medium experience with CSS in general. Even though Tailwind has uniform classes, every website built with it is so different.  
101  
5
18. 18  
[](/posts/how-i-make-css-art-4sbcf6-c8 "How I make CSS Art")  
Article  
![Avatar of hashnode](https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/4a287b2e7cb5499bae863f8e7137cdb4)Hashnode · 5y  
How I make CSS Art  
On the third of June 2021, I created my very first CSS art. I decided to write this blog post to illustrate my thought process from the very beginning up until publishing the art on codepen. Hopefully, this will attract more people into creating CSS art and have fun with it.  
101  
16
19. 19  
[](/posts/css-3d-card-design-with-rgb-effect-tutorial-w387v2bn2 "CSS 3D Card Design with RGB Effect Tutorial")  
Article  
![Avatar of redst](https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/redst)Red Stapler · 5y  
CSS 3D Card Design with RGB Effect Tutorial  
In this tutorial, we’re going to show you how to design and create CSS card with animating RGB and 3D tilt effect in just a few minutes. The first tutorial is how to setup the card layout from scratch using CSS. The second tutorial isHow to add 3d tilt effect using tilt.js. You can download the code of this project here.  
99  
2
20. 20  
[](/posts/a-simple-css-trick-for-dark-mode-opensource-com-enhxrdcsh "A simple CSS trick for dark mode | Opensource.com")  
Article  
![Avatar of oss](https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/5b0ebeb91c344b78a2a92b8bc5956b97)Open Source Way · 5y  
A simple CSS trick for dark mode | Opensource.com  
The prefers-color-scheme media query works the same way. The user can configure their operating system to use a light or dark theme. I specify different values of CSS variables for both modes and let the user's OS decide. This is the real power of the media query: Providing a consistent user experience from OS to web page.  
98  
1
21. 21  
[](/posts/learn-css-grid-by-building-5-layouts-in-17-minutes-6id8kmz4i "Learn CSS Grid by Building 5 Layouts in 17 minutes")  
Article  
![Avatar of freecodecamp](https://media.daily.dev/image/upload/t_logo,f_auto/v1628412854/logos/freecodecamp)freeCodeCamp · 6y  
Learn CSS Grid by Building 5 Layouts in 17 minutes  
Learn CSS Grid by Building 5 Layouts in 17 minutes. Learn how to use CSS Grid to build your own website. Learn more about CSS Grid at the CSS Grid website. For more information on how CSS Grid works, visit www.cssgrid.com. To learn more about the Grid, visit the Grid website at www.cssgrid.org.  
97  
3
22. 22  
[](/posts/new-in-chrome-93-taqoz3wio "New in Chrome 93")  
Article  
![Avatar of chrome](https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/e9b306fd1b484113b937dae36b867f37)Chrome Developers · 5y  
New in Chrome 93  
Chrome 93 will ship on September 21\. New PWA features include CSS Module Scripts and Multi-Screen Window Placement API. Installed PWAs can register as URL handlers, making it possible for users to jump straight into your PWA. The PWA Summit is coming up October 6-7.  
95  
4
23. 23  
[](/posts/pico-css-minimal-css-framework-for-semantic-html-tifergt9v "Pico.css • Minimal CSS Framework for semantic HTML")  
Article  
![Avatar of hn](https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/hn)Hacker News · 5y  
Pico.css • Minimal CSS Framework for semantic HTML  
Large and complex CSS file increase memory usage and cause longer style calculations. A great design should be minimal, fast and maintainable. Most popular CSS frameworks are bulky, overkill and hard to customize. Huge stackings of wrappers and CSS classes are unnecessary for semantics elements.  
93  
8
24. 24  
[](/posts/you-want-enabling-css-selectors-not-disabling-ones-5ydaz-l2o "You want enabling CSS selectors, not disabling ones")  
Article  
![Avatar of css_tricks](https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/css_tricks)CSS-Tricks · 5y  
You want enabling CSS selectors, not disabling ones  
An enabling selector is what I call a selector that does a job without disabling the particular rule. Let's say we have list items and we want to add the margin to every one except the last one. First, we add margin-bottom to all elements. Then, we disable the bottom margin on the last element.  
93  
5
25. 25  
[](/posts/tailwind-css-cheat-sheet---every-class-name-from-tailwind-css-on-a-single-page-5y5zuzjmt "Tailwind CSS Cheat Sheet - Every class name from Tailwind CSS on a single page")  
Article  
![Avatar of ph](https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/ph)Product Hunt · 5y  
Tailwind CSS Cheat Sheet - Every class name from Tailwind CSS on a single page  
90  
3

[See all CSS archives](/tags/css/best-of)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@graph":[{"@type":"CollectionPage","@id":"https://daily.dev/tags/css/best-of/2021#page","url":"https://daily.dev/tags/css/best-of/2021","name":"Best CSS Posts of 2021","description":"The most upvoted CSS posts of 2021, curated by the daily.dev community.","isPartOf":{"@type":"WebSite","url":"https://daily.dev"}},{"@type":"ItemList","@id":"https://daily.dev/tags/css/best-of/2021#items","numberOfItems":25,"itemListElement":[{"@type":"ListItem","position":1,"url":"https://daily.dev/posts/my-custom-css-reset-5w1hsb5j","name":"My Custom CSS Reset"},{"@type":"ListItem","position":2,"url":"https://daily.dev/posts/tailwind-css-v3-0-tailwind-css-knchiuxts","name":"Tailwind CSS v3.0 – Tailwind CSS"},{"@type":"ListItem","position":3,"url":"https://daily.dev/posts/how-i-structure-html-for-better-seo-results-quwh15yzv","name":"How I Structure HTML for Better SEO Results"},{"@type":"ListItem","position":4,"url":"https://daily.dev/posts/10-best-websites-for-practising-and-perfecting-front-end-development-nu2hgmtcm","name":"10 Best Websites for Practising and Perfecting Front-End Development"},{"@type":"ListItem","position":5,"url":"https://daily.dev/posts/learn-responsive-web-design-by-building-20-projects-a-major-freecodecamp-curriculum-update-9ot-2xnrh","name":"Learn Responsive Web Design by Building 20 Projects – a Major freeCodeCamp Curriculum Update"},{"@type":"ListItem","position":6,"url":"https://daily.dev/posts/defensive-css-tmz6xi81r","name":"Defensive CSS"},{"@type":"ListItem","position":7,"url":"https://daily.dev/posts/flexbox-cheat-sheets-in-2021-css-2021-abgptqlxt","name":"FlexBox Cheat Sheets in 2021 || CSS 2021"},{"@type":"ListItem","position":8,"url":"https://daily.dev/posts/the-ultimate-cheat-sheet-list-for-web-developers-dq615hjqi","name":"The Ultimate Cheat sheet List For Web Developers"},{"@type":"ListItem","position":9,"url":"https://daily.dev/posts/6-awesome-css-layout-generators-n3cv8p4-m","name":"🔥 6 Awesome CSS Layout Generators"},{"@type":"ListItem","position":10,"url":"https://daily.dev/posts/responsive-design-css-tips-osgsrngb8","name":"Responsive Design CSS tips"},{"@type":"ListItem","position":11,"url":"https://daily.dev/posts/10-google-chrome-extensions-you-should-use-as-a-developer-k1zjrq66h","name":"10 Google Chrome Extensions you should use as a developer"},{"@type":"ListItem","position":12,"url":"https://daily.dev/posts/building-a-video-chat-app-with-node-js-socket-io-webrtc-rwobpbgiy","name":"Building a Video Chat App with Node.js + Socket.io + WebRTC"},{"@type":"ListItem","position":13,"url":"https://daily.dev/posts/skills-required-to-be-a-full-stack-developer-a-checklist--djilbesu","name":"Skills required to be a full stack developer: a checklist"},{"@type":"ListItem","position":14,"url":"https://daily.dev/posts/5-html-and-css-good-practices-tl7ikiwcl","name":"5 HTML and CSS Good Practices"},{"@type":"ListItem","position":15,"url":"https://daily.dev/posts/if-else-in-css-iozc-msr2","name":"if/else in CSS"},{"@type":"ListItem","position":16,"url":"https://daily.dev/posts/css-pixel-art-generator-xpsncbn77","name":"CSS Pixel Art Generator"},{"@type":"ListItem","position":17,"url":"https://daily.dev/posts/my-honest-opinion-on-tailwind-css-n5-dwz2mo","name":"My honest opinion on Tailwind CSS"},{"@type":"ListItem","position":18,"url":"https://daily.dev/posts/how-i-make-css-art-4sbcf6-c8","name":"How I make CSS Art"},{"@type":"ListItem","position":19,"url":"https://daily.dev/posts/css-3d-card-design-with-rgb-effect-tutorial-w387v2bn2","name":"CSS 3D Card Design with RGB Effect Tutorial"},{"@type":"ListItem","position":20,"url":"https://daily.dev/posts/a-simple-css-trick-for-dark-mode-opensource-com-enhxrdcsh","name":"A simple CSS trick for dark mode | Opensource.com"},{"@type":"ListItem","position":21,"url":"https://daily.dev/posts/learn-css-grid-by-building-5-layouts-in-17-minutes-6id8kmz4i","name":"Learn CSS Grid by Building 5 Layouts in 17 minutes"},{"@type":"ListItem","position":22,"url":"https://daily.dev/posts/new-in-chrome-93-taqoz3wio","name":"New in Chrome 93"},{"@type":"ListItem","position":23,"url":"https://daily.dev/posts/pico-css-minimal-css-framework-for-semantic-html-tifergt9v","name":"Pico.css • Minimal CSS Framework for semantic HTML"},{"@type":"ListItem","position":24,"url":"https://daily.dev/posts/you-want-enabling-css-selectors-not-disabling-ones-5ydaz-l2o","name":"You want enabling CSS selectors, not disabling ones"},{"@type":"ListItem","position":25,"url":"https://daily.dev/posts/tailwind-css-cheat-sheet---every-class-name-from-tailwind-css-on-a-single-page-5y5zuzjmt","name":"Tailwind CSS Cheat Sheet - Every class name from Tailwind CSS on a single page"}]},{"@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Tags","item":"https://daily.dev/tags"},{"@type":"ListItem","position":3,"name":"CSS","item":"https://daily.dev/tags/css"},{"@type":"ListItem","position":4,"name":"Best of","item":"https://daily.dev/tags/css/best-of"},{"@type":"ListItem","position":5,"name":"2021"}]}]}
```

