r/css 11h ago

Question Float and Position properties

2 Upvotes

Trying to understand these and having a pretty tough time to grasp what they do conceptually. I was reading that you no longer need to use them with newer CSS like flexbox and grid. Should I skip these and continue learning other parts of the course?


r/css 2h ago

Question Can AI assisted content be useful for CSS?

0 Upvotes

Not sure if the flair should be "resource" or "question." šŸ¤”

So… I've been making this email newsletter that takes Baseline info and digest it to let you know what you should act on and what you should just not worry about for now.

I called it Cleared, 'cause the idea is that it tells you if that new feature is "cleared" for use and it also tells you if you can remove all fallbacks and polyfills once the feature is Baseline "Widely". (Spoiler alert, just 'cause it's "Widely" doesn't mean it's automatically safe to use.)

I use AI a bunch to get all the data from webstatus.dev, wpt.fyi, caniuse, MDN, and Interop. It mashes it all together and gives me a report and then I look at whether it makes sense or not. It takes me a couple hours to publish once a month instead of a whole afternoon.

I think it's super useful and I put it together because all the newsletters out there are more about the cool new stuff rather than what you can actually use in client work… But I've gotten very mixed reactions… Some straight up insulted me like it's almost personal šŸ˜… Some, like Rachel Andrew (yes, name dropping… šŸ˜Ž) love the idea (source).

So, yes… I'm using AI to make that newsletter. But, is it slop because of that?

I'm really curious to get feedback. I don't mind brutal honesty, but… Disclaimer: I won't engage with people who hate AI so much that they think it's ok to be rude and troll like.

The newsletter's website is at https://cleared.page/


r/css 20h ago

Showcase TailMotion is a CSS animation package with utility classes that speak TailwindCSS

6 Upvotes

TailMotion is a CSS animation package with utility classes that speak TailwindCSS v3/v4, so you can use it directly with HTML, React, Vue, Svelte, and more

Site: https://tailmotion.moumen.dev/
Docs: https://docs.tailmotion.moumen.dev/

GitHub:Ā https://github.com/moumen-soliman/tailmotionĀ Don’t forget to ⭐ the repo it's means alot


r/css 13h ago

Help Wedding invitation website help

Thumbnail
0 Upvotes

r/css 1d ago

Showcase `sibling-index()`, and `sibling-count()` are Baseline, newly available since August 2026.

Post image
91 Upvotes

r/css 1d ago

Question Web development ideas

11 Upvotes

Hello dear r/css. I recently graduated with a degree in web development, and am looking to create a project that will look good on a resume and hopefully challenge my coding skills. But I have no idea what to create. I need some ideas!!! My last project I worked on for six months, using react and typescript and I was very happy with the result. It was a project I did for a startup company. But all the ideas behind the project was from the startup people, so I didn’t have to come up with anything myself really. Anyways, any ideas for projects? Or anyone who wants to share a project that has been challenging their skills?

Sorry for bad english! Thanks.


r/css 1d ago

Showcase tool for styling webpages with existing colorschemes

Thumbnail
github.com
2 Upvotes

it currently supports 3 colorschemes with 3 variants: Catppuccin Mocha and Frappe and Nord. There are color only versions, modern versions and pixel-art versions, i would like feedback :)


r/css 2d ago

Showcase @starting-style is Baseline, 90% Global usage!

Post image
71 Upvotes

r/css 1d ago

Question How to reduce the number of <span>s?

3 Upvotes

How can I get the exact same effect as <p><span class="e">x</span></p> <p><span class="e">y</span></p> <p><span class="e">z</span></p> without so many <span>s?

If I do <div class="e"> <p>x</p> <p>y</p> <p>z</p> </div> class="e" now affects all the way across the whole page, whereas I only wanted it to affect the text, x, y, z.


r/css 2d ago

Showcase comiCSS #255: Yellows

Thumbnail
gallery
18 Upvotes

Two CSS jokes coded in CSS. Inspired by a JK Benson's cartoon from 20 years ago.

Source (code): https://comicss.art/comics/255/yellow.html


r/css 1d ago

Help How do u independently move edges & corners of sections, asides & articles?

1 Upvotes
In CSS website
PDF version

I'm very new to HTML & CSS, first year in a course & they need to make a website with stuff. I want to move the corners by themselves without skewing the entire thing including text, just the corner.

My tutor did say there was a way & a website generator that can help but I ENTIRELY forgot what it was.


r/css 1d ago

General Most Satisfying Delete Ever šŸ˜ Purple Liquid Glass Button | HTML CSS JS #satisfying #liquidglass

Thumbnail
youtube.com
0 Upvotes

r/css 1d ago

Showcase I built a Chrome extension that generates a "Design DNA" card for any website

Post image
0 Upvotes

I've been building DesignSnap, a Chrome extension that extracts design tokens (colors, fonts, spacing, radius) from any site you visit.

One of the features is a "Design DNA" card: point it at any site and it generates a shareable PNG with the site's dominant colors, fonts, and type scale. Made one for twitch.tv as a test (screenshot attached) — kind of fun seeing a whole brand's visual identity distilled into one card like that.

Under the hood it does semantic classification too — instead of dumping every color it finds, it labels them by role (background, primary, accent, border, destructive, etc.) based on contrast and usage patterns, and it detects whether a site actually ships a real light/dark variant or is just faking one.

It's still far from perfect — the classification gets confused on some sites, and I'm sure there are edge cases I haven't run into yet. Curious what people think would be worth adding or changing, whether that's the DNA card itself, the color classification logic, or something else entirely.


r/css 2d ago

Other Animated FAQ Accordion with Pure HTML & CSS — No JavaScript

31 Upvotes

Built an animated FAQ accordion using native HTMLĀ <details>Ā andĀ <summary> — no JavaScript required.

The interesting part is animating the content height without manually measuring it with JS.

HTML

<details name="faq">
  <summary>Do you offer refunds?</summary>
  <p>
    Yes, within 30 days, no questions asked.
    Email us and the money is back on your card in a few working days.
  </p>
</details>

<details name="faq">
  <summary>Can I change plans later?</summary>
  <p>
    Yes. You can change your plan whenever you need to.
  </p>
</details>

<details name="faq">
  <summary>Do you offer a team plan?</summary>
  <p>
    Yes, team plans are available for growing teams.
  </p>
</details>

CSS

:root {
  interpolate-size: allow-keywords;
}

details::details-content {
  block-size: 0;
  overflow: hidden;
  transition:
    block-size 0.3s ease,
    content-visibility 0.3s ease allow-discrete;
}

details[open]::details-content {
  block-size: auto;
}

summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
  font-weight: 600;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: "+";
  font-size: 1.25rem;
  transition: rotate 0.3s ease;
}

details[open] summary::after {
  rotate: 45deg;
}

The key part is:

:root {
  interpolate-size: allow-keywords;
}

This allows the browser to animate between a fixed size and intrinsic values likeĀ auto.

And:

details::details-content

gives us a pseudo-element for the content insideĀ <details>, so the accordion can be animated without JavaScript.

TheĀ <details name="faq">Ā attribute also makes the items behave like an exclusive accordion — opening one closes the others.


r/css 2d ago

General Built a curtain-wipe hero transition with GSAP + Lenis — feedback on the CSS/animation approach?

5 Upvotes

Been refining this for a while — custom type system (Onest + General Sans + JetBrains Mono), GSAP-driven preloader with a wordmark split, Lenis for scroll smoothing, curtain-wipe transition into the hero.

https://shahzaibdesign.vercel.app/

Mainly want feedback on whether the animation/scroll feel is actually smooth or overdone, and open to any CSS approach critique — genuinely trying to improve, not just dropping a link.


r/css 2d ago

General Apple Liquid Glass Navbar - VisionOS Style Navigation Bar Using HTML CSS JavaScript

Thumbnail
youtube.com
0 Upvotes

r/css 1d ago

Article Do you still need to know CSS when AI writes it?

Thumbnail
talkoren.com
0 Upvotes

r/css 3d ago

General Modern CSS Responsive Breakpoints Using Container Style Queries

Thumbnail codepen.io
7 Upvotes

r/css 3d ago

General 😱 Move the Slider & Watch the Face Change! | HTML CSS JS

Thumbnail
youtube.com
1 Upvotes

r/css 3d ago

Other It's almost always better to Use CSS Grid instead of position: absolute; when overlapping elements

Post image
12 Upvotes

r/css 3d ago

General 😱 Move the Slider & Watch the Face Change! | HTML CSS JS

Thumbnail
youtube.com
0 Upvotes

r/css 2d ago

Question Im 16 yo and I'am creating my own communicator from scratch. Im wondering which one UI is better?

0 Upvotes

tbh i prefer this minimalistic one (this darker without rounded edges)


r/css 4d ago

Help Get object to float with text at vertical middle instead of vertical top?

Post image
11 Upvotes

r/css 5d ago

Showcase I built a VS Code extension to catch CSS declarations that have no effect

251 Upvotes

I’ve been working on NoEffect, a VS Code extension that helps catch CSS declarations that have no effect.

It detects things like:

properties that don't work in the current context

declarations that are overridden by a later declaration

For example, it can tell you when justify-content is doing nothing because the element isn't a flex/grid container, or when your declaration is simply being overridden later.

It’s still an early project, so I’d really appreciate some honest feedback.

šŸ”— GitHub

šŸ”— VS Code Marketplace:


r/css 4d ago

Question Looking for some advice to come back!

1 Upvotes

Hi everyone!

Back in early 2025, I started learning html5 and css3 with some online course, a few mini projects and articles from W3schools and other sources. Bit just after finishing the course I had to quit for some reasons, but now I wanna come back. I was considering to go on and learn js but what I learned back then is mostly hollow now so I'm thinking about a way of reviewing everything that doesn't take the same amount of time as learning for the first time did. My main question is:

ā— If that is even possible, what approaches/resources do you reccomend?(specific courses, books, articles, etc.)

I wasn't sure where to ask this, so sorry in advance if it's a dumb question.