Another Anchor Positioning Demo: Multiple Anchors
CSS { In Real Life }
by Michelle Barker
5d ago
Here’s a new demo where we’re positioning article references for a body of text relative to two different anchors for the block and inline axes. Each reference is positioned so that it aligns vertically with the position it’s referred to in the text, but appears adjacent to the main content wrapper on the horizontal axis. The content area has its own anchor name: .content { anchor-name: --content; } We reference this anchor to alternately position our references to the left or right of the text using the anchor() function: .ref { position: absolute; inset-inline-start: anchor(--conten ..read more
Visit website
Perspective
CSS { In Real Life }
by Michelle Barker
3w ago
View from the top of Mount Snowdon (Y Wyddfa) in Eryri National Park This week I climbed a mountain. There are some things that make me care not one tiny bit about web development, and being on top of a mountain is one of them. The web helped me with this adventure, though. I planned the trip on the web. I researched the hiking route on the web. I booked the hotel on the web. I bought equipment on the web. I navigated the journey on the web (well, Google Maps). At the top of the mountain, none of it mattered. All that mattered was the moment. On top of the mountain, the people below were nothi ..read more
Visit website
Anchor Positioning and the Popover API for a JS-Free Site Menu
CSS { In Real Life }
by Michelle Barker
3w ago
Anchor positioning in CSS enables us to position an element relative to an anchor element anywhere on the page. Prior to this we could only position an element relative to its closest positioned ancestor, which sometimes meant doing some HTML and CSS gymnastics or, more often than not, resorting to Javascript for positioning elements like tooltips or nested submenus. Anchor positioning is currently only supported in Chrome with experimental platform features enabled, You’ll need to view this article in a supporting browser in order to see the demos. Popovers Anchor positioning becomes even mor ..read more
Visit website
RSS is Good, Isn’t It?!
CSS { In Real Life }
by Michelle Barker
1M ago
My son gets a weekly magazine delivered to our home. It’s full of his favourite comic strips by fantastic authors and artists, he gets the pleasure of receiving something in the post just for him, and (even better) it doesn’t come with a load of plastic tat like you get with magazines in the supermarket. It’s not packed full of ads either, apart from a few for the comic book company’s workshops and merchandise, which I consider a small trade-off. Wouldn’t it be awesome to get a magazine full of articles by your favourite bloggers every week? Anyway, that’s kind of what RSS is like. RSS stands ..read more
Visit website
Manifesto for a Humane Web
CSS { In Real Life }
by Michelle Barker
1M ago
I’m sure I’m not alone in noticing the recent proliferation of articles lamenting the impending (or, indeed, already happening) destruction of the web as we know it, due in large part to the influx of AI-generated content. For the most part, I share their pessimism. It’s hard not to see the devaluation of human content as anything but a negative. But in the face of all this gloom, I think it’s important to define not just what we don’t want from the web, but what we do. I put some of these thoughts into words and created a manifesto for what I think is a better vision for the web. It’s a lot o ..read more
Visit website
Shades of Grey with color-mix()
CSS { In Real Life }
by Michelle Barker
1M ago
Greys. Who doesn’t love ’em? When it comes to building websites, it can be handy having a few shades of grey at your disposal, no matter your colour palette. We use them for borders and subtle dividers, shadows, and to indicate state changes without overwhelming the user with colour. Some designers feel that a website needs quite a few shades of grey in order to convey subtleties. I once worked on a project that literally had 50 shades of grey. If your native language is American English, you might be a little vexed by my spelling of “grey” here. Sorry, not sorry. Happily, CSS named colours ar ..read more
Visit website
The Perfect Site Doesn’t Exist
CSS { In Real Life }
by Michelle Barker
1M ago
There’s something special about starting a new web or software project. Like a blank canvas, it has so much potential. Surely this is where we’re about to do our best work... In this piece for Branch magazine, I explore the theme of “Perfection is the enemy of progress” by considering how those of us concerned with building a humane web can weave incremental change into our work — without allowing perfectionism to stall our progress. Read the article via Branch ..read more
Visit website
Time to Ditch Analytics? Tracking Scripts and Web Sustainability
CSS { In Real Life }
by Michelle Barker
1M ago
This article on privacy-focussed web design by Paul Jardine and Becky Thorn of sustainably-minded web design agency Root raises some great points about the link between invasive tracking scripts and the carbon footprint of a website. I’ve often been frustrated by the negative performance impact of adding Google Analytics or Google Tag Manager to a site. Sites that were previously reasonably fast would subsequently perform poorly with regard to Google’s own Core Web Vitals. It seems that many of the products Google actively encourage web authors to add to their sites are paradoxically the ones ..read more
Visit website
Talking About Web Sustainability on ShopTalk Show
CSS { In Real Life }
by Michelle Barker
3M ago
When you get an invite from Chris and Dave to appear on ShopTalk Show it’s hard to say no! Despite my longstanding fear of sounding like an idiot on the airwaves, I swallowed my nerves and joined them for an episode on web sustaibaility — althought we managed to delve into a few other topics too. Naturally, right afterwards I thought of a whole bunch of things I forgot to mention (hopefully I’ll get around to writing one or two follow-up blog posts!), but I was pleased to get the chance to talk about this important subject on such an esteemed podcast. I hope listeners will take away one or two ..read more
Visit website
Creating Color Palettes with the CSS color-mix() Function
CSS { In Real Life }
by Michelle Barker
3M ago
Colors can sometimes get out of hand in a project. We often start with a few well-chosen brand colors, but over time, we may find ourselves adding variations as our project grows. Perhaps we realize that we need to adjust the lightness of a button color for accessibility reasons, or that we need a slightly different variant of a component. How do we ensure that the colors we choose fit within the design system for our project? I’ve been exploring using the relatively new CSS color-mix() function for this purpose. It’s been fun to see the different palette variations I could generate! In this a ..read more
Visit website

Follow CSS { In Real Life } on FeedSpot

Continue with Google
Continue with Apple
OR