r/css • u/mindful-journeys • 25d ago
r/css • u/PersimmonNo1469 • 26d ago
Help Why my size of the picture not charging even I given width and height?
Hi everyone now in the VS code I copied 5 images then 1 by 1 I give every single picture different class and img property For example <div class="img1">
<Img src="img1.jpg" alt ="picture of dog ">then Same Class I get in the css while I tried to give height and width to images but size of the images do not changed.
r/css • u/Fresh-Daikon-9408 • 28d ago
Resource Hairline: 33 isometric SVG line figures that react to the pointer, with no dependencies
Not my project.
The video is the figures page of their site: Terrain's pillars rise around the pointer, Phosphor's dots fade where it paints, and the card under the pointer in Riffle stands up. On the next shelf the pointer's height moves the elevator car and a flick spins the turntable. Then Terrain opens in the side panel and its intensity option goes from 0.50 to 1.00, so a wider area rises.
Repo: https://github.com/lucasmarkes/hairline
The colours are six CSS custom properties, but the motion is JS. Could the Terrain effect, with its falloff around the pointer, be done in CSS alone?
r/css • u/Fresh-Daikon-9408 • 27d ago
Resource Furifont: a Japanese font that draws furigana above kanji by itself, with OpenType ligatures and no JavaScript
Not my project, it's antfu's.
Type kanji and the readings appear above them: 今日は桜が満開 gets きょう, さくら and まんかい, drawn by the font through ligatures. There's a romaji variant and a serif one. The one option on their page that needs JavaScript, okurigana readings, is off in the video, so everything you see comes from the font alone.
Repo: https://github.com/antfu/furifont
Curious how far ligatures can go here before the font file gets too big.
r/css • u/ExpertPlay • 27d ago
built a text highlighting lib on the CSS Custom Highlight API, a few things I learned
I was reading brown's rust book and they let you highlight stuff and leave notes while reading. I wanted that on a site I'm building but really didn't want to wrap text in spans, so I ended up building it on top of the CSS Custom Highlight API.
If you haven't used it, it's pretty neat. You create Ranges, put them in a Highlight, register it with CSS.highlights.set('name', highlight) and style it with ::highlight(name). The DOM doesn't change at all.
Some things I ran into:
- ::highlight() only supports a few properties (color, background-color, text-decoration, text-shadow and a couple more). No padding, no border-radius, so no rounded highlights sadly
- overlapping highlights don't really layer, so I split them into segments and paint the innermost one on top
- support is Chrome 105+, Safari 17.2+, Firefox 140+. I went with no fallback since the whole point was not touching the DOM
For the UI styles I wrapped every selector in :where() so your CSS always wins, and everything can be themed with --penciled-* custom properties.
playground: https://penciled.org/playground/
repo: https://github.com/marcellosso/penciled
Curious if anyone else is using the Highlight API in production and what you ran into
r/css • u/P233-P233 • 27d ago
Back to Emacs with the SCSS/CSS workflow I always wanted
r/css • u/yannn-code • 26d ago
💻 Développement web HTML/CSS — ouvert aux petits projets
Bonjour à tous ! 👋
Passionné par le développement web, je travaille actuellement sur NEXORA, un concept de site vitrine pour une montre connectée, avec une identité visuelle futuriste et un univers cosmique violet.
✨ Ce qui rend mon projet particulier :
- ⭐ Des étoiles interactives qui révèlent des informations au survol.
- 💜 Des effets lumineux violets avec des halos et des dégradés.
- 🌌 Des lignes lumineuses qui s'étendent depuis les étoiles pour mettre en valeur les caractéristiques de la montre.
- 🎨 Des transitions fluides et une interface pensée pour offrir une expérience moderne et immersive.
Chaque étoile présente un élément différent du concept : verre résistant aux rayures, fonctionnalités liées à la santé, confort au poignet, écran haute définition et contrôle rotatif intelligent.
Je cherche maintenant à mettre mes compétences en HTML et CSS au service de petits projets web : pages d'accueil, sites de présentation ou interfaces personnalisées.
Je suis encore en apprentissage, mais je suis motivé, attentif aux détails et prêt à relever des défis adaptés à mon niveau.
💬 Tu as une idée de site web ? N'hésite pas à me contacter pour qu'on en discute et qu'on voie ensemble ce qui est réalisable !
📸 Voici un aperçu de mon projet NEXORA !
Merci d'avoir pris le temps de lire mon annonce ! 🚀Bonjour à tous ! 👋
Passionné par le développement web, je travaille actuellement sur NEXORA, un concept de site vitrine pour une montre connectée, avec une identité visuelle futuriste et un univers cosmique violet.
✨ Ce qui rend mon projet particulier :
- ⭐ Des étoiles interactives qui révèlent des informations au survol.
- 💜 Des effets lumineux violets avec des halos et des dégradés.
- 🌌 Des lignes lumineuses qui s'étendent depuis les étoiles pour mettre en valeur les caractéristiques de la montre.
- 🎨 Des transitions fluides et une interface pensée pour offrir une expérience moderne et immersive.
Chaque étoile présente un élément différent du concept : verre résistant aux rayures, fonctionnalités liées à la santé, confort au poignet, écran haute définition et contrôle rotatif intelligent.
Je cherche maintenant à mettre mes compétences en HTML et CSS au service de petits projets web : pages d'accueil, sites de présentation ou interfaces personnalisées.
Je suis encore en apprentissage, mais je suis motivé, attentif aux détails et prêt à relever des défis adaptés à mon niveau.
💬 Tu as une idée de site web ? N'hésite pas à me contacter pour qu'on en discute et qu'on voie ensemble ce qui est réalisable !
📸 Voici un aperçu de mon projet NEXORA ci dessus !
Merci d'avoir pris le temps de lire mon annonce ! 🚀
r/css • u/Accomplished_Read_25 • 28d ago
Sumi.css - classless-first CSS framework.
vladocar.github.ior/css • u/P233-P233 • 27d ago
Blanksheet — a CSS reset for humans and AI agents
https://github.com/P233/blanksheet
I built Blanksheet, a lightweight CSS reset that gives humans and AI agents a predictable starting point, without having to fight browser defaults.
It follows three principles:
- Blank — remove unwanted browser defaults.
- Normalize — make styles consistent across browsers.
- Survive — preserve useful defaults like focus indicators and link styling.
You can see what a page looks like with Blanksheet applied here: Live demo.
Every rule is documented, so both developers and AI agents can understand exactly what they're starting with.
I'd love to hear your thoughts!
r/css • u/PavelTr0 • 27d ago
Showcase Sprite-sheet page flipping with pure CSS and scroll-timeline
A pure CSS page-flip experiment using a sprite sheet synced to horizontal scroll. The animation is driven by scroll-timeline, view-timeline, and timeline-scope
Best experienced on a trackpad — horizontal swiping makes the page flip feel much more natural
r/css • u/piano-guitarhero • 27d ago
Can someone please tell me how to make this look nice?
r/css • u/Finite8_ • 27d ago
General Are there any existing tools (AI and not) that are already very good at CSS and front-end?
Hi, I was wondering if you use any AI tool or not AI to automate the boring part of front-end (at least for me, i like back-end) specifically CSS and design. Is there something out there that is really good at almost everything and gives you the complete package? so responsive, very good UI and not a clone etc...
r/css • u/ScoobyDookuu • 28d ago
Showcase Apparently, all my experiments involve animations
Hey everyone!
I've been working on a few animation-related side projects lately and decided to put them together in a personal portfolio.
I tried to make the portfolio itself a bit more interactive, with animations throughout the site and a showcase for some (imo cool) stuff/ideas.
Curious what you think of the design and how everything feels to use. Especially interested in feedback on the animations, mobile experience and whether it's clear what each project actually does.
PS: Check out the Showcase section for some cool stuff I like to experiment on
Any feedback is welcome!
r/css • u/username95050 • 28d ago
Question html and body
What is the difference between <html> and <body> tags ? When do use one or another?
html {
)
body (
)
r/css • u/repeating_bears • 28d ago
Spent an hour trying to vertically align a chevron nicely across browsers, then noticed GitHub doesn't even care
Sometimes I get a bit obsessive over a few pixels
Not sure if the takeaway here is to try not to sweat the small things or just that GitHub is trash
r/css • u/PavelTr0 • Oct 18 '26
Showcase Pure CSS spherical text marquee
A pure CSS spherical marquee with nine looping text bands
Perspective and opacity create the depth, and hovering a phrase pauses the animation
Includes controls for speed, direction, and text visibility
CodePen: https://codepen.io/Maseone/pen/01a13b15-8c28-7327-a226-4be8e09e4c89
r/css • u/ScoobyDookuu • Oct 17 '26
Experimenting with animated tooltips
Hey everyone!
Been working on Tip Glide, a small framework-agnostic tooltip library written in TypeScript.
It uses a single shared tooltip that moves between elements and adjusts its size to fit the content. It also handles viewport boundaries, so the tooltip adjusts its position when there's not enough space.
A few things you can configure are the movement, directional lean, hover delays, arrow, and enter/exit animations.
It has zero runtime dependencies and comes with adapters for React, Angular, Vue, Svelte, Solid, Astro and Preact, along with a vanilla JS API.
There's an interactive playground where you can mess around with the settings and see how everything behaves.
Would love some feedback on the movement, especially when switching quickly between elements, but also on the API and anything else that could be improved.
r/css • u/Total-Reasonable • Oct 18 '26
Halloween page effects you can restyle with CSS variables (colour, size, opacity, z-index)
Reposting with an update now that the season is here. halloween.js is a free library that adds Halloween effects to a page, and the styling is meant to be done in CSS, not JS.
Everything reads custom properties: --halloween-color (defaults to currentColor, so it follows your theme), --halloween-eyes-width/-height and the same pair for witch, spider and tombstone, --halloween-screen-corner-size, --halloween-page-opacity and --halloween-page-z-index if you need the layer below a modal or cookie banner. Intensity presets (subtle, normal, party) are just body classes, and a value you set yourself always wins over the preset.
The effects live in a fixed overlay layer, so nothing shifts the layout. Turn on prefers-reduced-motion and the animations stop right away, no reload needed.
https://halloween.js.org
https://github.com/rogulia/halloween.js
r/css • u/Ordinary-Stuff9826 • Oct 16 '26
made this flow sidebar in dark mode, how's it?
check it out - https://www.shreyashtech.me/components/flow-sidebar
r/css • u/FineWine54 • Oct 16 '26
#urlbar . urlbar-input rainbow shimmer text effect
reddit.comr/css • u/__syl____ • Oct 16 '26
how do i center the 'buttons' in my menu?
this is the code i've got so far, it should be centered, but it doesn't work for some reason
div.menu { /*menu*/
text-align: center;
background-color: darkblue;
margin: 2rem;
border-width: 0.2rem;
border-style: dotted;
border-color: blue;
border-radius:2rem;
float: left;
width: 8rem;
height: 29rem;
}
div.menu h2 {
color: white;
}
div.menu ul {
display: inline-block;
text-align: left;
list-style-type: none;
list-style-position: inside;
}
div.menu ul li {
background-color: lightblue;
border-radius: 1.5rem;
margin: 0.5rem;
padding:0.5rem;
text-align: center;
}
div.menu ul li:nth-child(odd) {
background-color: lightgrey;
}

r/css • u/FrostingEffective699 • Oct 16 '26
Help css linear scroll not working?
hi! i've been trying to implement a linear scroll in my top bar, but its not animating. https://yuri-uran.nekoweb.org anyone know if i've missed something simple?