r/css • • Jun 11 '26

General Learning CSS making memes is the best way to learn CSS (code in comments)

Post image
469 Upvotes

r/css • • Jul 21 '25

Question Why do some people prefer Tailwind CSS over CSS??

468 Upvotes

I started with learning CSS and wanted to expand my skills so I tried learning Tailwind css. I just don’t understand why anyone would prefer to use Tailwind over CSS. It makes things so unorganized, chaotic, and harder to read.

On sites like Fiverr etc, I see people listing Tailwind CSS instead of regular CSS. Is it standard for experienced developers to know Tailwind and use it more often? I’m an intermediate developer and full set on never touching Tailwind a day in my life ever again lol


r/css • • Sep 27 '24

General CSS display: contents; is super handy for Flexbox + Grid layouts where the children aren't direct descendants

451 Upvotes

r/css • • Aug 24 '25

General I've really slept on how much CSS Grid changes the layout game.

437 Upvotes

I recently was given a design that had certain layouts that I normally I would use some kind of absolute positioning and remove the elements from the DOM flow, positioning as needed, probably using some kind of calc() or magic numbers (hopefully not). For example, here was one component:

I really hate doing that though; it feels quite old school. I only tend to use Grid for, well, grid layouts. I really challenged myself to see if this kind of stuff could be done with CSS Grid, and was stoked about the results:

That really helped prime me for doing some more advanced layouts and I can honestly say I feel that along with flex, aspect-ratio and viewport units, there's virtually no layout that is out of reach!

I know I'm just scratching the surface, too. If you haven't really taken the time to learn Grid, I implore you to do so. The syntax really isn't great, but you get used to it and start to see why it sort of had to be that way. It's definitely elevating my approach across the board.

Codepen for this last image gallery, if anybody is curious: https://codepen.io/CheeStudio/pen/yyYEpLe


r/css • • May 28 '17

Here, I fixed it..

Post image
423 Upvotes

r/css • • May 29 '19

So my colleague just wrote some interesting CSS... One of those "just because you can doesn't mean you should" cases.

Post image
422 Upvotes

r/css • • Feb 08 '26 Heartwarming

Showcase Blossom color picker UI built with CSS 🌸

421 Upvotes

Built a flower-style color picker in React using Tailwind for layout and styling.

Includes:

  1. fixed colours (multi-layer)

  2. an arc slider for saturation

  3. animated open/close interaction

Repo: https://github.com/dayflow-js/BlossomColorPicker
Demo: https://dayflow-js.github.io/BlossomColorPicker/

Inspired by lichinlin, motiondotdev.


r/css • • Aug 15 '26

Showcase Background-clip Collie

Post image
414 Upvotes

A small comic where each panel shows a different clipping mode (border-box, padding-box, content-box, and text) but framed as four different "Collies."

Source: https://comicss.art/comics/254/


r/css • • Oct 31 '26

AI Assisted Crazy what you can do with just CSS right??

413 Upvotes

I spent the last few weeks building the "perfect" liquid glass effect with just CSS and SVG Filters, No WebGL used and it works page wide, which means it picks up anything of the background behind it.

The core is a backdrop-filter with an SVG displacement map. I screen recorded Apple's play button (I mean the video play button, for example on youtube) for reference on my iPhone and measured it frame by frame. It’s 1:1 in the middle, then the image folds over itself towards the edge, and it pulls pixels inward.

The displacement map itself is based on a 9-slice of tiny grayscale PNGs that get stretched instead of re-rendered on every resize (I need this because the elements are animated and not static). That alone cut main thread time by a lot, giving it a pretty decent performance for how complicated it is.

The outer edge consists of three extra layers on top that don’t bend anything, they just brighten, darken and add a highlight. For reflections of the stuff around the glass, the layer is bigger than the element and gets morphed and masked back to its shape, because the backdrop is otherwise clipped to the element’s box. Actually, Apple's original liquid glass effect doesn't even have reflections, but i figured it adds a lot to it on the website I implemented it in.

Then there are shadows, caustics, etc to give it the final "realistic" touch and voila, almost perfect result imo. The only thing thats left is fix performance, however the animations are the trickiest part. Without animations, it runs extremely smooth and even with animations its not a problem as long as the elements are small enough.

Sadly, Safari only gets a simple blur for now, because WebKit doesn’t render backdrop-filter: url(). However, there are two open PRs that fix it (WebKit/WebKit#68614 and WebKit/WebKit#68613). The CSS is the same for every browser, so it should just start working once they make the next major release.

Just wanted to share this, if you have any more technical or other questions, feel free to ask!

-----EDIT-----

A few of you requested to see whats actually going on in the background, so I made it open source.
I made a small showcase website: https://studies.nordify.io/study/001-liquid-glass/
The repository is also linked there!


r/css • • Jun 16 '21

Did you know you can style video subtitles with CSS pseudo-element called ::cue ?

Post image
408 Upvotes

r/css • • Feb 25 '21

Height: 100%;

Thumbnail
gfycat.com
408 Upvotes

r/css • • Sep 12 '24 Heart of Silver

General Hey guys, I made this using Pure Html und Css

Post image
407 Upvotes

r/css • • Apr 29 '20

I've remade the NASA logo in full CSS and apply some optional style to see the layers in 3d (cdpn.io/rNOwOZg)

399 Upvotes

r/css • • Sep 25 '26

Showcase Pure CSS flame

Post image
376 Upvotes

r/css • • Jan 20 '26

Showcase I recreated some national flags using only HTML & CSS (no images, no SVG)

Post image
375 Upvotes

Live Preview: Live Preview
GitHub Repo: Github Repo

I’m learning CSS layouts, grids and wanted a practical challenge, so I recreated some national flags using only HTML and CSS. This project did help me with understanding position(absolute, relative), grids, and most importantly reusing CSS properties and variable.

Although the code is not perfect and I think I might have complicated things a bit there but will try to improve it. Also I tried to maintain the exact design of flag, there are a few inaccuracies (apologies for that) and will try to improve that too.

I will look forward to recreate more complex flags


r/css • • Aug 01 '20

CSS Positioning be like...

Post image
375 Upvotes

r/css • • Feb 19 '26

Showcase View Transitions are so underrated

364 Upvotes

r/css • • Feb 23 '21

How Spotify makes text on images readable

Post image
363 Upvotes

r/css • • Apr 04 '20

A generator for section separators with only css

363 Upvotes

r/css • • Jun 01 '19

This is what I do in my free time. Making my worst nightmare.

363 Upvotes

r/css • • Jul 11 '22

Made this spicy animation🔥 What do you guys think?

362 Upvotes

r/css • • Feb 18 '26

General Ambient CSS - Physically based CSS lighting and shadows (and react components)

355 Upvotes

r/css • • Jun 09 '25

Showcase Sheriff - CSS Art

Post image
349 Upvotes

r/css • • Feb 14 '26

General I built a site to showcase what modern CSS can do

Thumbnail
modern-css.com
346 Upvotes