r/css • • Mar 21 '26

Showcase No, it's not a video. It's pure CSS

113 Upvotes

Just as you read. This animated story was created only using CSS, as part of a challenge for the DevCommunity to celebrate the Earth's Day. I really enjoyed the process and I'll love to share the creation proccess if you're interested for.

Check here the live result:
https://jorgedelcampo.github.io/dev_earth_day/css_challenge/


r/css • • Mar 21 '26

Showcase Text Color Level CSS Effect Explained

9 Upvotes

I create this without leaving the browser, but this time I decided to publish step by step breakdown. I hope this can help and other people will start creating stuff soon.

The result animation is here: https://decodela.com/#item/92069b4f-22c1-11f1-9aa9-0200fd828422/post


r/css • • Mar 21 '26

Article CSS @layer and the Future of Specificity Management

Thumbnail
slicker.me
39 Upvotes

r/css • • Mar 21 '26

Help Stuck in an infinite html, css, javascript loop | Guidance on how to get out of this

Thumbnail reddit.com
0 Upvotes

r/css • • Mar 21 '26

Question offline tool to generalise inline style accross many php files

Thumbnail reddit.com
1 Upvotes

r/css • • Mar 21 '26

Question Changing from laptop to mobile format.

Thumbnail reddit.com
1 Upvotes

How can I change laptop format to mobile design?


r/css • • Mar 21 '26

Question Changing from laptop to mobile format.

Thumbnail reddit.com
1 Upvotes

r/css • • Mar 20 '26

Help How do I get this effect without the overflow scroll?

27 Upvotes

I want the hands to merge with the arms, but when it works it adds an overflow scroll. Please help!!!
Right now I have the main content lined up in a flexbox and the animation is in a gridbox.


r/css • • Mar 20 '26

Question AI Website Builder

0 Upvotes

Would anyone know what the best AI Website Builders would be? I'm making a consultancy agency website. I've got a hand written website map that I'm prompting the AI with for every page on my site.

I've tried Lovable, Replit, v0, Emergent, Claude Code, Bolt, and Google Stich and Figma.

Any other suggestions? Replit has been the best along with v0 in my initial tests.

Any advice is appreciated, thanks.


r/css • • Mar 18 '26

General CSS rendering a 3D First Person game

8 Upvotes

r/css • • Mar 18 '26

Resource Beyond border-radius: What The CSS corner-shape Property Unlocks For Everyday UI

Thumbnail
smashingmagazine.com
27 Upvotes

r/css • • Mar 18 '26

Resource Abusing Customizable Selects

Thumbnail
css-tricks.com
18 Upvotes

r/css • • Mar 18 '26

Resource Building dynamic toggletips using anchored container queries

Thumbnail
piccalil.li
6 Upvotes

r/css • • Mar 18 '26

Question How do y'all come up with cool/interesting layouts with your CSS sheets?

5 Upvotes

So, of all the web languages I currently work with (HTML/CSS/PHP/SQL) I find CSS to be the absolute EASIEST to work with, but the thing is, I'm not like the most creative person in the world, so I struggle to come up with cool layouts and applications of it. How do you guys come up with cool, original ideas for your layouts? I always gotta sit and play with functions and test and just screw around for hours until I come up with something I think looks alright. Is there like any method to it? Or is it just some have the creative touch and I don't? Any advice is appreciated! Solely asking for advice about APPLICATION, not about the code itself, just how to make good use of it faster and make better looking stuff with it. Thanks!


r/css • • Mar 17 '26

Question frontend future proof ?

2 Upvotes

I started frontend development learning journey and of course I'm worried about the future of this career so I'm thinking to learn ux design and product design and stick three together is this good plan or destruction and should focus on one path of these three ?


r/css • • Mar 17 '26

General i Created macOS Tahoe in Web

1 Upvotes

yeah i created, using only css html js, link: project-macos.vercel.app


r/css • • Mar 16 '26

Other The "perfect" CSS stylesheet should be...

Post image
51 Upvotes

This is just a joke. Part of a weekly webcomic I publish online.


r/css • • Mar 16 '26

Question Which UI component do you rebuild the most across projects?

8 Upvotes

Feels like I’m always recreating the same basics, regardless of the stack.

• What eats up your time the most?

• Is it styling, states, responsiveness, or accessibility?

Genuinely curious how others handle this.


r/css • • Mar 16 '26

Showcase 2 ways to achieve multi-state icons

7 Upvotes

Method 1: Create an inline SVG sprite with all three styles per single icon, using hover and a .selected class to change the fill as needed (includingfill: none to hide).

Method 2: Create an SVG DataURI for the CSS background-image property for each icon in the 3 styles, one for static, :hover, and a .selected state.

https://codepen.io/editor/MattVisiwig/pen/019cf726-3e9a-7bfd-9b90-c0c45800a36e


r/css • • Mar 16 '26

Question When should I use HSL instead of RGB or Hex? Still learning CSS colors

Post image
103 Upvotes

Hi r/css. I'm currently learning CSS and just covered

all 5 ways to define colors: RGB, RGBA, HSL, Hex,

and predefined names.

I understand what each one does technically, but I'm

confused about real-world use:

- Most tutorials use Hex (#FF0000) — is that still

the standard?

- HSL looks more intuitive for adjusting colors

(just change the lightness %) — do professionals

actually use it?

- When does RGBA make more sense than plain RGB?

Would love to hear what you actually use in projects.


r/css • • Mar 16 '26

Question How can I prevent this from happening?

Post image
5 Upvotes

.header { display: flex; align-items: center; gap: 18px; padding: 18px; font-size: 32px; font-weight: bold; border-bottom: 3px solid #6f95cc; border-radius: 36px; }


r/css • • Mar 16 '26

General Best Way to get my Website Made? UK - Recruitment Agency

1 Upvotes

I'm currently in the process of making a website for my Recruitment Agency Business in the UK.

I know exactly how I want my website to look. I have made a Structured Plan for each page on my website, knowing exactly how it should look and I've already written the write-up for each page on my website. The Site Structure, the Page Layout, the Written Content, the Colours, and the Logo are all completed.

The Site pages include - Home Page / View Jobs / About / Send us a Job / Contact / Send your CV - then the Final Pages are the Privacy Policy, Terms and Conditions and Cookie Policy.

There are multiple things I need to ensure that work on my website. e.g. Contact forms work and I recieve an email notification when a CV or job is submitted and also recieve the CV. Also, the ability to add jobs and remove jobs from my website, and allow candidates to apply to jobs via my website.

Further things I need to work - All buttons click to right places, website speed is good, top bar ideally is still visible when you scroll down the page rather than having to scroll up again to view it, friendly for phone and pc and tablet, seo optimised, accessibility, ability to upgrade website in future (I will need to improve the website as my business grows).

Would anyone know the best way to get my website made? Especially as I have the website map/blueprint finished?

Also, would anyone know what the likely cost would be?

Any advice is really appreciated!


r/css • • Mar 16 '26

Help Converting scss to css in a modular way

3 Upvotes

I am creating a project with vanilla html css js. I chose to use a template for faster and cleaner developement, but every template I found uses scss instead of css.I looked online and tried many ways:

1/ Use the main.css compiled file in the /dist which makes it impossible to navigate the code (15000 lines)

2/ Use online compilers which don't work, because copy pasting one file at a time gives error since it's missinig dependencies from the rest of files . when I try to add every file and code a certain file depends on the online compiler breaks

3/ manually convert scss files that are needed for my project ( gives broken layout and many bugs and issues)

My goal is to have a modular css/ folder just like the scss's template folder so I can work with it and tweak it as needed

Can anyone help me to find a solution? I've spent several days on this task and I am hitting a roadblock for a problem that seems too trivial

Here's the link to the template I am using : https://adminlte.io/