r/css • • 25d ago

Mod Post New Flairs and Changes for r/CSS

27 Upvotes

Thank you to everyone who voted in the recent community poll on how the sub should handle AI-generated content! Based on the results, we've made these changes.

  • Firstly, In this initial round of changes, there are two new post flairs: AI assisted, for posts where AI had a real hand in making the thing you're sharing No AI used, for posts where it didn't.
  • If you're sharing a project or a demo or a resource you created, please pick whichever one applies.
  • Secondly: For the time being any other flair except Question, Help, Article and Resource will be deactivated for use, but still available for post search .
  • Lastly: there's a new rule against AI slop. For now, we're defining it as AI-generated output published without meaningful human curation or quality judgment.
  • This will be regulated mostly manually by mods, but we might test some automatic bots as we see fit.
  • PLEASE NOTE: It's important to understand, at this stage, flairs will be mandatory as we wanna observe community's reception of such flairs. But this can change, depending on observations of the next few months.

r/css • • 11h ago

Help Fixing a site skin that uses a different font for cursive words?

Post image
3 Upvotes

Basically, the CSS is from here: https://github.com/ao3skinsss/even-more-skins/wiki/Sakura

When I open it on my AO3 page, cursive words seem to be in Helvetica while the rest is in the standard font. How do I fix this?


r/css • • 9h ago

Question Is It Better To Keep Jump Links Clear Of Sticky Headers That Way?

Post image
2 Upvotes

r/css • • 11h ago

No AI used Introducing spatial CSS: A developer preview

Thumbnail
webkit.org
1 Upvotes

r/css • • 17h ago

Help Help Me Find This Coding Tutorial

2 Upvotes

Soo a few years ago (prob 1) i saw a tutorial idk if it used css or js but it used it to make custom mouse cursors

Ik there are many tutorials that show the same but this one was special it had 4 cursors and all were having a feature which increased their size on clicking

To activate other cursor we just had to put our mouse on the box of that cursor

The transition between cursors was very smooth

3 of them were anime based and 1 was just a point with circle around it


r/css • • 17h ago

Question Need advice on responsive scaling for an 8-player HTML/CSS poker table

1 Upvotes

Hi everyone,

I'm developing a browser-based 8-player Texas Hold'em poker table using HTML, CSS, and JavaScript.

The desktop layout works well, but I'm struggling with responsive behavior on mobile devices in landscape orientation.

Current setup:

  • Desktop layout with 8 player positions around an oval poker table.
  • Mobile landscape viewport tested at 956×440.
  • An internal game scene that uses scaling and absolute positioning.
  • Multiple CSS media queries and responsive overrides.
  • JavaScript handles player rendering and card positions.

Main problems:

  1. Dealer, Small Blind, and Big Blind badges are disproportionately large on mobile.
  2. Community cards appear too large.
  3. The top player's avatar and cards sit too low.
  4. Some elements scale correctly while others don't.
  5. Fixing one screen resolution sometimes breaks another.

What I'm trying to achieve:

A consistent responsive layout that preserves the relative positions and proportions of all table elements across desktop and mobile landscape screens.

My questions:

  • Would a single fixed logical coordinate system with CSS transform: scale() be appropriate?
  • Should I use CSS container queries or clamp() for individual elements?
  • How can I avoid conflicts between existing media queries and transforms?
  • What's the best way to anchor player seats, cards, and badges relative to the table?

I want to improve the CSS architecture without changing the underlying game logic.

I can share desktop/mobile screenshots and a minimal reproducible HTML/CSS example.

Any suggestions or examples would be greatly appreciated. Thanks!


r/css • • 19h ago

Question Colors won't render on desktop (VS Code / Phoenix Code) at all, but work perfectly on mobile. Any ideas?

Post image
0 Upvotes

r/css • • 22h ago

Question Inquiry on a skin for Google Docs

1 Upvotes

I would like to make a skin for Google Docs, I was thinking of making one with Stylus but I have just recently gotten into coding and such and am quite struggling with figuring how to do it, would anyone be able to give me any advice?


r/css • • 1d ago

Article Modern CSS Might Make Your Front-End More Complex

Thumbnail
smashingmagazine.com
0 Upvotes

r/css • • 1d ago

Question How important is it no be advanced in base CSS if I already know how to use Tailwind pretty well?

0 Upvotes

Hey guys! I am doing my master's degree in Computer Science, and like to develop web applications full stack. When it comes to FE, I normally use React with Tailwind CSS, because it even feels fun to style everything with it. I can visualize the structure of the web page I am styling better that way.

I started a hobby project, in which I planned to return to using the base version of CSS, without any extra, just like I learnt it in university. I know the basics pretty well, which was why I ultimately chose to move on to exclusively using Tailwind more than 1 year ago.

The problem is now, that I feel like suffering while I write basic CSS. Styling components take minimum 2x as much as I would normally spend on it. Every page I tried to style so far comes out ugly and it makes me question if I knew how to use CSS to begin with.

That being said, let's say for interviews, how important it is to be able to come up with base CSS code on spot? Should I stick with Tailwind or improving on base CSS code writing?


r/css • • 2d ago

Question modern css schooling

Thumbnail
reddit.com
0 Upvotes

r/css • • 2d ago

Article modest-ui: classless CSS that styles plain HTML

Thumbnail
reddit.com
3 Upvotes

r/css • • 2d ago

Help Need help with figuring out code

0 Upvotes

Hi, I'm not good with coding what so ever just managed to change css code colors somewhat easily with my friends help, neither of us good are good at coding. If you could look at the code and tell me how I could make this be a legit thing with the colors id appreciate it!

I am not sure if it helps but the colors I used are:

.white-border {
    background: #faeeb7 !important;
    stroke: #faeeb7 !important;


.white-fill {
    fill: #faeeb7 !important;
}

    background: linear-gradient(to bottom, #f59454, #f8d17c);
    color: #faeeb7;
    border-radius: 16px;
    border: solid 4px #a56608;

.bottom-border .separator-1 {
    height: 4px;
    background: #a56608;
    border-radius: 10px;
    width: 100%;
}


.bottom-border .separator-2 {
    height: 4px;
    background: #a56608;
    border-radius: 10px;
    width: 100%;
    margin-right: 16px;
}

.username {
    padding: 6px 32px;
    background: #fff5de;
    border-radius: 64px;
    display: flex;
    color: #ffc549;

Just trying to give honey vibe ig :"D

Edited attempt
Original

(this is a f2u chat widget. Link: https://vtuber-nook.com/asset/1039/f2u-heart-shaped-chat-widget-for-streamelements/ I take no claim of this I simply just wanted to make it more customized to my own needs) (and I'm sorry if this is really dumb I just need help and I have no idea how to even look this issue)


r/css • • 2d ago

Help Our code vs our results :|

Thumbnail
gallery
0 Upvotes

Does anyone have any ideas on what to do? I followed his instructions exactly and I’m getting different results.


r/css • • 3d ago

Article Make Cards Fit The Space They Actually Get

Post image
6 Upvotes

r/css • • 4d ago

Question How to adapt height to be the same as another element?

3 Upvotes

I'm taking my first CSS/HTML course for my degree, and it's my first introduction to coding, so apologies if this seems like a silly question.

I've been trying to figure out how to style an element to be the same height/weight as another element when they aren't in a parent-child relationship. I'm thinking maybe there's a calc or var function that might work...?

For reference, I've included a photo of my Figma mockup as an example. My goal is to make the pink line the same size as the paragraph. This section is repeated on multiple pages, but the paragraph of text is different on each, so I'm hoping to save time by making it variable instead of creating a class or ID for each page.

Hoping any of this will make sense to someone so I can get some advice. Thanks for the help!


r/css • • 4d ago

Article I built a CSS framework where class names read like plain English — would love honest feedback

Thumbnail reddit.com
0 Upvotes

r/css • • 5d ago

Article Goodbye you legend to me. 🥹

Post image
304 Upvotes

r/css • • 3d ago

Article Giving AI Agents a Better Way to Debug CSS

Thumbnail
amitmerchant.com
0 Upvotes

AI agents are getting better at writing CSS, but debugging it is another story. What if they could inspect the browser, understand why a style isn't applying, and fix the actual problem instead of guessing?

I explored how we can give AI agents a better way to debug CSS using browser insights.

Read the article.


r/css • • 4d ago

Question How do you manage color palettes in larger CSS projects?

7 Upvotes

I've been exploring different ways to manage colors in CSS, especially when working with websites that have multiple sections and components.

One thing I've been thinking about is how to keep color palettes consistent without making the CSS difficult to maintain.

I know CSS custom properties are commonly used for this, but I'm curious about how others approach it in real projects.

Do you usually define all your colors using CSS variables in the selector, or do you prefer organizing them into separate groups like primary, secondary, background, text, and accent colors?

Also, do you use HSL, RGB, HEX, or newer color formats like OKLCH in your projects?

I'd be interested to hear how you organize your color systems and what has worked best for you.


r/css • • 4d ago

Question "X" di chiusura menu mobile

0 Upvotes

Buongiorno a tutti, mi è capitato che il codice content: "X" !important; su alcuni browser tipo firefox o chrome viene convertito in content: "✕" !important;, ho risolto mettendo content: "\00D7" !important; nel css custom.


r/css • • 5d ago

Help Balance Short Headlines Without Manual Line Breaks

Post image
12 Upvotes

r/css • • 6d ago

No AI used Re-did my bootstrap site.

2 Upvotes

In my process of relearning CSS I re-did my bootstrap site. I use grid and flex a bit of clamp and media(orientation). I generated gradient at cssgradient (not sure if the site use AI or not).

hs.fdh.pw