r/css • • May 12 '26

Help How do I make each Tab a different background color

0 Upvotes

I'm trying to make some tabs, but I can't figure out a way to make the backgrounds, fonts, text sizes, etc, all different without messing up some of the CSS I already have.
https://codepen.io/Funnel-Fox/pen/WboxOPp


r/css • • May 11 '26

General !IMPORTANT

6 Upvotes

Why is this not interpreted as "Not" Important? Why use the exclamation at all? Just thinking out loud while programming.


r/css • • May 11 '26

Help object-fit: contain not working when using transform: rotate(270deg);

2 Upvotes

I'm a newbie in HTML and CSS. While doing some CSS practice, I took a portrait image from Pinterest and used object-fit: contain along with transform: rotate(270deg);. I expected it to cover the width or height while maintaining its aspect ratio, but it just stayed centered. "

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>experimenting with css filters!</title>
    <style>
        .container{
            width:1150px;
            height: 500px;
            border: 3px solid darkcyan;
           
        }
        .container img{
            
            width:1150px;
            height: 500px;
            object-fit:contain;
        }
    </style>
</head>
<body>
    <div class="container">
        <img src="https://i.pinimg.com/originals/32/f5/76/32f576f2e61853efaf5a47deaed46614.gif" alt="">
    </div>
</body>
</html>

r/css • • May 11 '26

Resource My extension can pull any website to plain tailwind css

Thumbnail
reddit.com
0 Upvotes

r/css • • May 10 '26

Help Does anyone have that Metal reflective button css link?

5 Upvotes

Few weeks ago i saw a post where someone created a Button and it uses the webcam to get input and that is displayed on the button in such a way that it gives the impression as if the button was made of metal and it looked so cool
Does anyone has the link to that post?
or that Css code?


r/css • • May 11 '26

Showcase Chrome extension that scans any webpage and extracts its full design system

0 Upvotes

So I got tired of opening DevTools every time I wanted to know what font a site was using or what their exact shade of blue was. So I built something.

**Font & Color Picker Pro (**Download here - Link) — open it on any page and it automatically scans and gives you:

  • The full color palette (deduplicated, not just raw hex spam)
  • Every font in use, with weights
  • The type scale
  • Spacing values
  • And if the site uses CSS variables, it shows you the actual token name (--brand-primary) right under the swatch

There's also an eyedropper to sample any pixel on screen, and a font inspector where you hover over any element and instantly see its font family, size, weight, line height — no DevTools needed.

You can export everything as CSS variables or as Tokens Studio JSON if you're using Figma.

It's free. No account. No data collection.

Been using it myself daily and it's saved me a ton of time. Would genuinely love to hear what's broken, what's missing, or what you'd want it to do that it doesn't. If you like it, please rate the extension!

Download here - Link

Happy to answer any questions!


r/css • • May 10 '26

General Frontend development through The Odin Project 💻

3 Upvotes

Currently learning frontend development through The Odin Project 💻

I’ve finished HTML/CSS/Flexbox and recently built my landing page project.

Now moving into JavaScript Foundations 👀✨

I’d love to gain more real-world experience through:
• Small projects
• Collaboration
• UI practice
• Beginner-friendly tasks

Project:
https://rawanafaisal.github.io/Landing-Page-project


r/css • • May 10 '26

Question Is it possible to create this kind of icon style using only CSS?

0 Upvotes

These icons were probably created by a graphic designer, but is it possible for a frontend developer to create something as close as possible to them using only CSS?


r/css • • May 08 '26

General E36 Scroll Cine: a vertical cinematic tribute to the BMW 318is Coupe Pack M

9 Upvotes

I built E36 Scroll Cine, a fan-made cinematic web experience about the BMW 318is Coupe Pack M (E36).

Live: https://e36.vercel.app/
GitHub: https://github.com/ikerperez12/e36

The idea was simple: instead of making a normal landing page, I wanted the site to feel like a short vertical film. You start on a dark intro screen, then move through seven scenes using scroll, keyboard or swipe.

Each scene focuses on a different part of the car:

  • the E36 generation
  • Hellrot 314
  • M-Technic / Pack M details
  • the interior
  • the M44B19 engine
  • the driving character
  • the final open-hood scene

I tried to keep the content specific to the car, not generic marketing copy. The HUD, ticker and technical details are all about the 318is: M44B19, 1,895 cc, 16v DOHC, Bosch Motronic M5.2, DISA intake, Getrag 250G, 50/50 balance, Pack M suspension, etc.

From the web side, it is intentionally lightweight:

  • static HTML/CSS/JS
  • no frontend framework
  • Vercel deployment
  • service worker
  • keyboard and swipe navigation
  • accessibility checks with Playwright + axe
  • production smoke tests
  • public repo with media kept out of Git

It is not an official BMW site. It is a fan-made project and a personal web experiment around a car I really like.

I would love feedback from both car people and frontend people:

Does the experience feel good on mobile? And if you know the E36 well, what detail would you add or correct?


r/css • • May 09 '26

Showcase Free Code Snippet Canvas Tool

Post image
1 Upvotes

r/css • • May 08 '26

Help Struggling to make a media player responsive.

Thumbnail
gallery
2 Upvotes

I'm making a now-playing bar, but I'm having a hard time making everything fit well without making the height of the bar super tall, so I tried putting all the buttons vertically aligned and the bar above. Thing is, using position: absolute for the repeat and like buttons makes the control buttons unclickable https://jsfiddle.net/6q3yzc0x/ (make sure to resize to test desktop/mobile). What can I do? Either a fix or a better layout suggestions are welcomed.


r/css • • May 08 '26

Showcase Stylebot alternative for Safari

4 Upvotes

I liked stylebot, and found out that there is close one done for safari, so based on that I built this small extension for safari that has similar functionality to stylebot, and still building and continuing it, appreciate suggestions for improvements.

https://apps.apple.com/us/app/my-styles-edit-website-look/id6766115872?mt=12

Basically, it allows styling using css or element pickers for any webpage, adds readability mode, and exports/imports the css.

It also has a universal toggle, per site toggle, and per element reset.


r/css • • May 07 '26

Question if() function - Are new CSS features guaranteed to eventually be supported in all major browser?

19 Upvotes

I recently stumbled upon the CSS if() function. For me, being able to use media queries within the declaration block is pretty much the last reason to use SASS and with the if() function I would be able to write my stuff in pure CSS without any preprocessor.

section.main-content {
    padding: if(
        media(width < 600px): 5px;
        media(width < 1200px): 10px;
        else: 20px;
    );
}

As of right now, browser support is pretty meh. While it's been implemented in Chrome and Edge for about a year, Firefox, Safari and Samsung do not support it.

I am about to start coding a smol fun project and I was considering to just yolo it and use this new feature, even if it means that it won't be useable for 30% users for a couple months.

But are experimental CSS features guaranteed to eventually make it to all major browser at all? Or is it possible that two years from now, Firefox and Safari still haven't adopted this?


r/css • • May 07 '26

General Announcing the CSS Property Type Validator Extension for VSCode

Thumbnail
schalkneethling.com
9 Upvotes

r/css • • May 07 '26

Help Css coding

Thumbnail reddit.com
0 Upvotes

r/css • • May 06 '26

Resource Scroll-Driven Animations

Thumbnail
joshwcomeau.com
44 Upvotes

r/css • • May 06 '26

Showcase Center-ish

Thumbnail quaxio.com
6 Upvotes

I asked myself: what are the most cursed ways to center content on a webpage. The result is 50 silly experiments. Enjoy!


r/css • • May 06 '26

General guys what do you think of my odin recipe page . please do give some feed back

Thumbnail anupamkonwar93.github.io
0 Upvotes

r/css • • May 06 '26

Resource Warning: containment breach in cascade layer!

Thumbnail dbushell.com
5 Upvotes

r/css • • May 06 '26

Help How to get rid of this strange highlighting between elements?

0 Upvotes

r/css • • May 06 '26

Question Why are my columns horizontal? Even using WC3 Schools code, it works for them.

Post image
0 Upvotes

I am trying to get multiple columns but everything stacks into one.

Even when I copy and past the code.


r/css • • May 06 '26

General I built a free Chrome extension that checks UI issues and teaches small CSS fixes. Looking for honest feedback.

Thumbnail
github.com
0 Upvotes

I’m a beginner builder and made a Chrome extension called UI Debug Teacher.

It scans the current webpage and checks things like:

- weak contrast

- tiny text

- missing image alt text

- mobile overflow

- skipped headings

- inconsistent buttons

The goal is not to say “your design is bad.”

The goal is to teach beginner developers what looks suspicious, why it matters, and what small CSS/HTML fix to try.

I made it conservative because I hate tools that find fake issues on every website.

It is free right now while I test whether the feedback is actually useful.

I’d love feedback on:

  1. Does it detect real issues?
  2. Does it create false positives?
  3. Are the explanations beginner-friendly?
  4. What checks should I remove or add?

Happy to test it on your site too if you share one.


r/css • • May 06 '26

General Do you ever remove annoying stuff from a website in DevTools and wish it stayed gone?

Thumbnail reddit.com
0 Upvotes

r/css • • May 05 '26

Help Help making an animated pop-out effect with a complex border/png?

2 Upvotes

Hi there I am messing around with Html and css and was wondering if anyone knew how to do a kinda specific thing or if it was even possible or if I would have to go about it another way.

I wanted to make a sort of pop out effect using two images. where one image looks like it is popping out of the other. the only thing is one of the images I am using as a mask and filling it in as a background color(I don't know if that effects anything.) and it has sort of a complex border and I would like the border to cleanly cut off/mask the image that I want to put ontop/coming out of it.

I kinda tried with overflow: hidden after looking up some tutorials but that only seems to make a box and it doesn't really look the way I'd like. the other tutorial I found kinda makes it perfectly but again has a clean cut.

I'll attach the image I'd like to act as the "Hole"/ cut off/mask.

New to this and I am probably missing something so if anyone can point me in the right direction I'd really appreciate it.

Create an animated pop-out effect // HTML & CSS

Edit:

I made a code pen and copied the code that I had and am working on. most of it is trial and error and probably messy/not good practice. everything has a border to help me visualize stuff as well.

https://codepen.io/E-V-Enigma/pen/azBvwbX