CSS

1321 bookmarks
Custom sorting
You Want border-color: transparent, Not border: none
You Want border-color: transparent, Not border: none
If you find yourself removing a border from an element that has a border and are tempted to use border: 0 , border: none, or outline: none, I’d urge you to stop for a moment and reconsider. It’s li…
·frontendmasters.com·
You Want border-color: transparent, Not border: none
Going beyond pixels and (r)ems in CSS - Container query length units - iO tech_hub
Going beyond pixels and (r)ems in CSS - Container query length units - iO tech_hub
In the third part of this series, we’ll look at length units based on the container. Yes, you heard that right, we can finally get some measurements based on a containing element and that just spells awesome in my book. Currently available in all evergreen browsers, these units open up a lot of opportunities to create some smart systems and once again, I will write this up packed with a bunch of demos and cool use cases.
·techhub.iodigital.com·
Going beyond pixels and (r)ems in CSS - Container query length units - iO tech_hub
Going beyond pixels and (r)ems in CSS - Relative length units based on the viewport - iO tech_hub
Going beyond pixels and (r)ems in CSS - Relative length units based on the viewport - iO tech_hub
In this second part of the series, let’s talk about units based on the viewport also known as "the viewport-percentage length units". A lot of developers know these, but they can create some unexpected behavior, especially in combination with scrollbars and mobile behavior. Based on some articles and videos I picked up on the web from time to time, I'd like to explain some of the common pitfalls when using viewport units.
·techhub.iodigital.com·
Going beyond pixels and (r)ems in CSS - Relative length units based on the viewport - iO tech_hub
12 Modern CSS One-Line Upgrades | Modern CSS Solutions
12 Modern CSS One-Line Upgrades | Modern CSS Solutions
Sometimes, improving your application CSS just takes a one-line upgrade or enhancement! Learn about 12 properties to start incorporating into your projects, and enjoy reducing technical debt, removing JavaScript, and scoring easy wins for user experience.
·moderncss.dev·
12 Modern CSS One-Line Upgrades | Modern CSS Solutions
CSS Relative colors - iO tech_hub
CSS Relative colors - iO tech_hub
Before the relative color syntax you had to rely on CSS variables or even worse: JavaScript to modify the parameters of a color. Using the from keyword the browser can convert the originating color to different color spaces and change the color properties.
·techhub.iodigital.com·
CSS Relative colors - iO tech_hub
The `hanging-punctuation` property in CSS
The `hanging-punctuation` property in CSS
(I did a Twitter thread on this a while back, against my better judgment, and now moving to a proper blog.) The hanging-punctuation property in CSS is almost a no-brainer. The classic example is a …
·chriscoyier.net·
The `hanging-punctuation` property in CSS
New CSS Viewport Units Do Not Solve The Classic Scrollbar Problem — Smashing Magazine
New CSS Viewport Units Do Not Solve The Classic Scrollbar Problem — Smashing Magazine
Since the introduction of CSS viewport units in 2012, many of us have been using `width: 100vw` as a way to set an element’s width to the full width of the viewport. But, as Šime Vidas explains in this deep dive, `100vw` does not always represent the full width of the viewport due to differences in how browsers handle scrollbars.
·smashingmagazine.com·
New CSS Viewport Units Do Not Solve The Classic Scrollbar Problem — Smashing Magazine
Anchor Positioning | 12 Days of Web
Anchor Positioning | 12 Days of Web
Anchor Positioning is an incoming dynamic addition to enhance the capabilities of CSS positioning.
·12daysofweb.dev·
Anchor Positioning | 12 Days of Web
A Few Ways CSS Is Easier To Write In 2023 — Smashing Magazine
A Few Ways CSS Is Easier To Write In 2023 — Smashing Magazine
We’re living in somewhat of a CSS renaissance with new features, techniques, experiments, and ideas coming at us to an extent we haven’t seen since “CSS3”. It’s easy to feel overwhelmed when your profession seems to be advancing at breakneck speed, but Geoff Graham considers the ways “modern” CSS in 2023 has actually made CSS “easier” to write.
·smashingmagazine.com·
A Few Ways CSS Is Easier To Write In 2023 — Smashing Magazine
Workarounds for buggy gradients
Workarounds for buggy gradients
CSS has a great new feature where you can specify the color space to use by adding in to the gradient (not yet supported in Firefox). This is especially useful
·keithjgrant.com·
Workarounds for buggy gradients
Being Picky about a CSS Reset for Fun & Pleasure
Being Picky about a CSS Reset for Fun & Pleasure
Just days before Andy revamped his (more) Modern CSS Reset, Dave and I were line-by-lining it on ShopTalk Show. Mouthblogging is fun and all, but so is Writemouthblogging, known colloquially as &#8…
·chriscoyier.net·
Being Picky about a CSS Reset for Fun & Pleasure
A Couple of New CSS Functions I’d Never Heard Of
A Couple of New CSS Functions I’d Never Heard Of
light-dark() Saw Bramus post about this. :root { color-scheme: light dark; –text-color: light-dark(#333, #ccc); } Apparently, this is just a first step on the way toward a more robust schemed…
·chriscoyier.net·
A Couple of New CSS Functions I’d Never Heard Of
Modern CSS in Real Life - Chris Coyier
Modern CSS in Real Life - Chris Coyier
Hey! Chris Coyier here. This is a blog-itized version of a presentation I created. It started life as a Keynote file which I presented in person at RenderATL in June of 2023. I put a lot of work into it! I’m so grateful to everyone who came and saw it. But you can’t beat the […]
·chriscoyier.net·
Modern CSS in Real Life - Chris Coyier
Revealing Images With CSS Mask Animations — Smashing Magazine
Revealing Images With CSS Mask Animations — Smashing Magazine
Let’s play with images and experiment with CSS masks. The idea is fairly simple: take a single `` tag and harness the power of CSS to accomplish complex hover transitions. Through different demos, you will see how CSS masks combined with gradients allow us to create fancy effects — with efficient, reusable code.
·smashingmagazine.com·
Revealing Images With CSS Mask Animations — Smashing Magazine
A (more) Modern CSS Reset - Andy Bell
A (more) Modern CSS Reset - Andy Bell
I wrote A Modern CSS Reset almost 4 years ago and, yeh, it’s not aged overly well. I spotted it being linked up again a few days ago and thought it’s probably a good idea to publish an updated version. I know I also have a terrible record with open source maintenance, so I thought […]
·andy-bell.co.uk·
A (more) Modern CSS Reset - Andy Bell