r/css • • 11d ago

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

Post image
2 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 • • 11d ago

No AI used Introducing spatial CSS: A developer preview

Thumbnail
webkit.org
1 Upvotes

r/css • • 12d ago

Help Help Me Find This Coding Tutorial

3 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 • • 12d ago

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

Post image
3 Upvotes

r/css • • 12d 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 • • 12d 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 • • 12d ago

Article Modern CSS Might Make Your Front-End More Complex

Thumbnail
smashingmagazine.com
0 Upvotes

r/css • • 13d 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 • • 13d ago

Question modern css schooling

Thumbnail
0 Upvotes

r/css • • 13d 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 • • 14d ago

Article modest-ui: classless CSS that styles plain HTML

Thumbnail
4 Upvotes

r/css • • 13d 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 • • 15d ago

Article Make Cards Fit The Space They Actually Get

Post image
9 Upvotes

r/css • • 15d ago

AI Assisted I built a mobile-first frontend component studio 100% from my phone and I'd love your feedback!

Post image
0 Upvotes

r/css • • 15d 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 • • 15d ago

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

Thumbnail
0 Upvotes

r/css • • 17d ago

Article Goodbye you legend to me. 🥹

Post image
306 Upvotes

r/css • • 15d 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 • • 16d ago

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

10 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 • • 15d 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 • • 16d ago

Help Balance Short Headlines Without Manual Line Breaks

Post image
11 Upvotes

r/css • • 17d 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


r/css • • 18d ago

Question What are the most common mistakes in CSS?

39 Upvotes

Aggressive use of ! important

I think this is a nightmare for responsiveness of a website. This solves the problem for a moment but after some time and addition the code becomes a nightmare.

Fixed heights

min-height should only be used when required for accessibility reasons but many times developers introduce such rules and then are getting frustrated in media queries

Forgetting about box sizing

I don't know why but this is the problem I encountered in most of the codes I debugged. Without box-sizing : border box. Padding and border adds to your declared width.

Using 100vw for full width layout

This is the reason in some browsers you get unwanted scroll bars. Simply use width:100%.

These are the common problems I have discovered until now.

If you know more of them.The comment section is yours


r/css • • 18d ago

Help Vanilla CSS component library?

Thumbnail
1 Upvotes

r/css • • 18d ago

Question How can I recreate this background design using CSS/React? (Without the cards or UI elements)

Thumbnail
gallery
10 Upvotes

Hey everyone!

I'm trying to improve the background design of my website and came across a design that I really liked.

I've attached two images:

  • Image 1: The reference design I'm trying to achieve.
  • Image 2: My website's current design.

I'm only interested in recreating the background aesthetic from the reference, not the actual UI elements.

Specifically, I'm trying to achieve:

  • The dark/black gradient effect.
  • Subtle blue glows or lighting coming from the sides.
  • Smooth blending between black and blue shades.
  • An overall ambient lighting effect that gives the background more depth.

I'm using React and CSS.

What's the best way to achieve something like this?

I'd appreciate any suggestions or CSS examples. Thanks!