You have seen "using a div as a button," but how about "using a button as a div"? Forget about complex CSS centering solutions. Center all your content vertically and horizontally with a single HTML tag:
Accessibility question: I've published videos lately without anyone talking (just background music with animations and text). What would be a way to make those videos accessible to blind people? I added a "transcription" in the description. Would closed captions help?
@joelanman Thank for the suggestion. I did my own version of audio description (which is probably not a good idea ๐ณ), including the text in the video plus the actions that happen around it (e.g. an element pops up, the code updates to xyz, etc.)... now off to add them to Youtube.
@simevidas it looks like they are combining a determinate and indeterminate loading indicator into a single component. HTML's <progress> is only determinate iirc, no?
This cartoon is half tongue-in-cheek, half serious. Whenever I post a comic online, someone says: "CSS should not be used for drawing!" Which is technically correct, but... ๐คท
Does anyone have a good example of a select element accessibly restyled into a fancy drop down select, a chunky thing with images or icons included with the options?
@sarajw Visa has a nice accessible component library. There were talks about opening it to the public/open-sourcing it, but don't know what happened in the end.
Each letter is drawn with CSS and uses the property/value that it showcases. Some are animated (K or Q), and others are interactive (M or R). Check the live demo to get all the action: https://comicss.art/comics/95/abc-css.html
With Twitter sinking rapidly, I may spend a little bit more time here... But don't know how much honestly. Mastodon is not my favorite social network; Bluesky looks nice, but it's still in diapers (and that's been generous); Facebook, nope; LinkedIn, probably? But that will be like staying at work late (working there is spoiling my experience on that platform). Definitely will continue posting on my website, but that's like shouting into the void and unidirectional...
@sarajw I like this community and the content being shared here. My main dislike is the platform itself. I don't find it as usable or attractive as other social networks.
In the USA, first you can buy a gun, then you can drive, then you can die for your country, then you can vote, then you can drink, then you are old enough to CSS.
@elly@hi_mayank i probably have misunderstood how LCH/OKLCH work. I was under the impression that as long as the Lightness value is the same, just changing the hue should not affect the contrast values, as the perceived lightness is the same.