Articles on Css
Last updated: 2022/08/22
Top deep-dives on Css
Ending on an unrelated to hardware note, with some plain ol' CSS tricks. Ever wonder how you can achieve that flip page effect on a website? No? Your loss. Amit Sheen's article is all about perspective in CSS. Amit gives a number of examples on how perspective can be combined with transform and translate to accomplish a variety of effects, like moving a square from side to side while flipping it around. It's some web-dev wild magic.
If you're going to use icon fonts, you're gunna have a bad time mmmkay? Because as Michael Irigoyen highlights in this article, they lead to flashes of unstyled content, are horrible for accessibility, they're not very maintainable, and visually they're like to be degraded. Use SVG instead like Michael suggests!
If you're looking to optimize your website's user experience, or SEO performance, the time it takes for a page to load is an essential criterion. One of the key factors affecting this stat is what Sia Karamalegos addresses in this titular article. Sia goes into the what, why, when, and how, thoroughly exposing render-blocking resources.
Scott Helme demonstrates two methods that one could exfiltrate data from a website using CSS.
Matthew Weier O'Phinney presents a quick introduction to TailwindCSS, then covers some of the pros and cons, giving a good overview of what the library ethos is.
Kimmo Brunfeldt does a deep-dive into implementing types for Tailwind when working in TypeScript with React.
CSS has undergone huge changes in the past couple of years, with the introduction of attributes like flexbox and grid. Unfortunately, we're still in the transition period where not all of the parts of CSS support the same syntax that is used by these new features. In this very concise article, Jeremy Keith reviews some of the areas that still don't support logical properties and require directional ones instead.
Temani Afif shows off some 3D effects with CSS sorcery.
Although globalization is a great thing, software is still mostly playing catch up when it comes to having easily implementable solutions for handling different locales. And for good reason. Languages, dates, and times can all come in different formats. Adam Argyle and Oriol Brufau have written an extensive article about CSS features that handle document flow for you, based on user locale. Write simple code to handle laying out the webpage for you regardless of if the language is read left to right, right to left, or up to down!
In the past couple of years, there have been major pushes for websites to be come more accessible. If you're not familiar with the space, just know that there are A LOT of different parts that go into making a website accessible, including alt text for pictures, focus, and tag structures. This extensive article by Sara Soueidan focuses specifically on the focus indicator, explainin what it is, browser defaults and the new accessibility requirements in WCAG 2.2.
The internet is probably one of the best inventions of the 20th century. Connecting people across the world, with different perspectives, views, and knowledge makes the world a better place more-so than being a detriment. However it's also important to keep in mind that not everyone uses the internet, and our windows into it, websites, in the same way. In this informative article, Val Head goes through the specifications for the Web Content Accessibility Guidelines and explains them in practical terms.
Jen Simmons presents the (relatively) newly added :has() selector in CSS and how you can use it to conditionally apply layouts.
"All HTML elements have their own directionality". This directionality dictates the direction in which text goes (left to right or right to left), which is useful for different languages. In this concise article, Miyoung Shin outlines how element direction caching was achieved in Chromium.