Your Web News in One Place

Articles by CSS Tricks from December 2020

Help Webnuz

Referal links:

Sign up for GreenGeeks web hosting
< Return to CSS Tricks details.
10:08 pm GMT - Wed, December 30, 2020
CSS Tricks CSS Individual Transform Properties in Safari Technology Preview
The WebKit blog details how to use individual CSS Transform properties in the latest version of Safari Technology Preview. This brings the browser in line with the CSS Transforms Module Level 2 spec, ...
03:56 pm GMT - Wed, December 30, 2020
CSS Tricks Cloudinary Tricks for Video
Creating video is time consuming. A well-made 5-minute video can take hours to plan, record, and edit and that’s before we start talking about making that video consistent with all th...
03:09 pm GMT - Wed, December 30, 2020
CSS Tricks The Rules of Margin Collapse
Josh Comeau covers the concept of margin collapsing:This idea might sound simple, but if you’ve been writing CSS for a while, you’ve almost certainly been surprised when margins either don...
05:15 pm GMT - Tue, December 29, 2020
CSS Tricks Design v18
I redesigned the site! I can never think about the word redesign without also thinking about realigning, from Cameron Moll’s seminal article. I did not start from nothing. This design wasn’...
04:00 pm GMT - Tue, December 29, 2020
CSS Tricks Automatic Social Share Images
It’s a pretty low-effort thing to get a big fancy link preview on social media. Toss a handful of specific <meta> tags on a URL and you get a big image-title-description thing. Here̵...
03:53 pm GMT - Tue, December 29, 2020
CSS Tricks Chapter 6: Web Design
Previously in web history…After the first websites demonstrate the commercial and aesthetic potential of the web, the media industry floods the web with a surge of new content. Amateur webzines ...
03:16 pm GMT - Tue, December 29, 2020
CSS Tricks Simulating Drop Shadows with the CSS Paint API
Ask a hundred front-end developers, and most, if not all, of them will have used the box-shadow property in their careers. Shadows are enduringly popular, and can add an elegant, subtle effect if used...
08:34 pm GMT - Mon, December 28, 2020
CSS Tricks Accessible SVG Icons
The answer to “What is the most accessible HTML for an SVG icon?” isn’t one-size-fits all, because what an icon needs to do on a website varies. I’m partial to Heather Migliori...
02:24 pm GMT - Mon, December 28, 2020
CSS Tricks Create a Tag Cloud with some Simple CSS and even Simpler JavaScript
Ive always liked tag clouds. I like the UX of seeing what tags are most popular on a website by seeing the relative font size of the tags, popular tags being bigger. They seem to have fallen out of fa...
02:42 pm GMT - Sun, December 27, 2020
CSS Tricks clipPath vs. mask
These things are so similar, I find it hard to keep them straight. This is a nice little explanation from viewBox (what a cool name and URL, I hope they keep it up). The big thing is that clipPath (th...
02:53 pm GMT - Sat, December 26, 2020
CSS Tricks A Utility Class for Covering Elements
Big ol’ same to Michelle Barker here:Heres something I find myself needing to do again and again in CSS: completely covering one element with another. Its the same CSS every time: the first elem...
09:28 pm GMT - Fri, December 25, 2020
CSS Tricks Responsible, Conditional Loading
Over on the Polyplane blog (there’s no byline but presumably it’s Kilian Valkhof), there is a great article, Creating websites with prefers-reduced-data, about the prefers-reduced-data med...
03:46 pm GMT - Thu, December 24, 2020
CSS Tricks Integrating TypeScript with Svelte
Svelte is one of the newer JavaScript frameworks and its rapidly rising in popularity. Its a template-based framework, but one which allows for arbitrary JavaScript inside the template bindings; it ha...
03:25 pm GMT - Thu, December 24, 2020
CSS Tricks A Calendar in Three Lines of CSS
This article has no byline and is on a website that is even more weirdly specific than this one is, but I appreciate the trick here. A seven-column grid makes for a calendar layout pretty quick. You c...
06:50 pm GMT - Wed, December 23, 2020
CSS Tricks Custom Styles in GitHub Readme Files
Even though GitHub Readme files (typically ./readme.md) are Markdown, and although Markdown supports HTML, you can’t put <style> or <script> tags init. (Well, you can, they just ...
03:56 pm GMT - Wed, December 23, 2020
CSS Tricks Continuous Performance Analysis with Lighthouse CI and GitHub Actions
Lighthouse is a free and open-source tool for assessing your websites performance, accessibility, progressive web app metrics, SEO, and more. The easiest way to use it is through the Chrome DevTools p...
11:50 pm GMT - Tue, December 22, 2020
CSS Tricks Yes or No?
Sara Soueidan digs into this HTML/UX situation. “Yes” or “no” is a boolean situation. A checkbox represents this: it’s either on or off (uh, mostly). But is a checkbox al...
09:35 pm GMT - Tue, December 22, 2020
CSS Tricks Edge Everything
The series is a wrap my friends! Thanks for reading and a big special thanks to all the authors this year who shared something they have learned. Many authors really swung wide with thoughts about how...
05:57 pm GMT - Tue, December 22, 2020
CSS Tricks Recognizing Constraints
Theres a C word in web development that we dont give enough attention to. No, Im not talking about continuous integration, or even CSS. The C word Im talking about is constraints. Understanding constr...
05:49 pm GMT - Tue, December 22, 2020
CSS Tricks WooCommerce on Mobile
Whether you use the eCommerce features on WordPress.com or use WooCommerce on your self-hosted WordPress site (like we do), you can use the WooCommerce mobile app. That’s right WooCommerce has n...
03:42 pm GMT - Tue, December 22, 2020
CSS Tricks Deploying a Serverless Jamstack Site with RedwoodJS, Fauna, and Vercel
This article is for anyone interested in the emerging ecosystem of tools and technologies related to Jamstack and serverless. Were going to use Faunas GraphQL API as a serverless back-end for a Jamsta...
12:53 am GMT - Tue, December 22, 2020
CSS Tricks How The Web is Really Built
My 2020 was colored by the considerable amount of time I spent analyzing data about CSS usage in the wild, for the CSS chapter of the Web Almanac, by the HTTP Archive. The results were eye-opening to ...
11:02 pm GMT - Mon, December 21, 2020
CSS Tricks 2020 Roundup of Web Research
It’s December! Lots of things are published this time of year, like developer advent calendars and organizations reflecting on the past year. We have even our own end-of-year series where we ask...
10:59 pm GMT - Mon, December 21, 2020
CSS Tricks Retrospective on Fela
I really appreciate a real-world walkthrough of a technology. Not only in what that technology does, but why it was chosen and how it worked for a team. Anybody can read the docs, but what you know af...
04:26 pm GMT - Mon, December 21, 2020
CSS Tricks Converting and Optimizing Images From the Command Line
Images take up to 50% of the total size of an average web page. And if images are not optimized, users end up downloading extra bytes. And if theyre downloading extra bytes, the site not only takes th...
02:54 pm GMT - Mon, December 21, 2020
CSS Tricks I Dont Know
Ive learned to be more comfortable not knowing. I dont know, comes easier now. I dont know anything about that. Its okay. It feels good to say.Whether its service workers, Houdini, shadow DOM, web com...
09:24 pm GMT - Fri, December 18, 2020
CSS Tricks Change vs. Inertia
Recently, I’ve become more deeply aware of the inherent tension betweenchangeandinertia, as it applies to the evolution and use of web technologies. These forces have always been present and opp...
04:38 pm GMT - Fri, December 18, 2020
CSS Tricks Optimizing Image Depth
Something I learned (or, I guess, re-learned) this year is how important it is to pay close attention to the bit depth of images. Way back in the day, we used to obsessively choose between 2-, 4-, or ...
03:41 pm GMT - Fri, December 18, 2020
CSS Tricks What Makes CSS Hard To Master
Tim Severien:I feel we, the community, have to acknowledge that CSS is easy to get started with and hard to master. Lets reflect on the language and find out what makes it hard.Tim’s reasons CSS...
12:51 am GMT - Fri, December 18, 2020
CSS Tricks Whats Old is New
This year, I learned a lot about how “old” tricks can solve a lot of modern problems if you use the right tools. Following the growth of Jamstack-style development has been both a learning...
04:07 pm GMT - Thu, December 17, 2020
CSS Tricks I learned to love the Same-Origin Policy
I spent a good chunk of my work life this year trying (in collaboration with the amazing Noam Rosenthal) to standardize a new web platform feature: a way to modify the intrinsic size and resolution of...
04:07 pm GMT - Thu, December 17, 2020
CSS Tricks 25 Years of JavaScript & 25 Free Courses
(This is a sponsored post.)Pluralsight is giving away 25 courses on JavaScript for free to celebrate JavaScript’s 25th birthday. It’s no cheapie, either. The courses range from getting you...
10:39 pm GMT - Wed, December 16, 2020
CSS Tricks Three Ways to Distinguish a Site From the Norm
In an age where so much web design is already neat, clean, and simple, I can think of three ways to distinguish your site from the norm:Stunning visuals that cannot be created in UI vector editors, li...
10:31 pm GMT - Wed, December 16, 2020
CSS Tricks Learning to Simplify
When I first got this writing prompt, my mind immediately started thinking stuff like, What tech have I learned this year? But this post isnt really about tech, because I think what Ive learned the mo...
04:40 pm GMT - Wed, December 16, 2020
CSS Tricks Slow Movement
There was a time when I felt overwhelmed by how fast the web developed. It seemed like not a single day passed without a new plugin, framework, technique, or language feature being released. I believe...
03:32 pm GMT - Wed, December 16, 2020
CSS Tricks How to Use the Locomotive Scroll for all Kinds of Scrolling Effects
I was recently looking for a way to perform scrolling effects on a project and I stumbled on the Locomotive Scroll library. It lets you perform a variety of scrolling effects, like parallax and trigge...
03:30 pm GMT - Wed, December 16, 2020
CSS Tricks The Power of Lampshading
I enjoyed this blog post from Shawn. Lampshading is apparently the idea of a TV show calling attention to some weakness (like an implausible plot point) so that the show can move on. By calling it out...
12:05 am GMT - Wed, December 16, 2020
CSS Tricks Its Always Year Zero
In the short term, opinions about technology often follow a compressed form of Lavers Law:Everything just before me was completely broken.Everything that comes after me is completely unnecessary.Every...
07:52 pm GMT - Tue, December 15, 2020
CSS Tricks Old is Solid; New Gets Talked About
When Chris asked me to write about “one thing I learned about building websites this year” I admit my brain immediately went through a list of techniques and CSS properties I started using...
03:47 pm GMT - Tue, December 15, 2020
CSS Tricks Whats New in WCAG 2.1: Label in Name
WCAG 2.1 Recommendations rolled out in 2018. Its been a couple years now and there are some new Success Criterion. In this article, I will discuss Label in Name, which is how we visually label compone...
03:45 pm GMT - Tue, December 15, 2020
CSS Tricks Hell Yes! CSS!
Speaking of cool CSS stuff you can buy, Julia Evans’ zine Hell Yes! CSS! is hot off the presses. A “zine” being 28 pages of “short, informative, and fun comics which will quick...
12:05 am GMT - Tue, December 15, 2020
CSS Tricks Representation Matters
This year I had the pleasure of re-launching The Accessibility Project. I spend a lot of time researching and writing about accessibility and inclusive design, so this felt like the cumulation of a lo...
10:23 pm GMT - Mon, December 14, 2020
CSS Tricks Netlify & Next.js
Cassidy Williams has been doing a Blogvent (blogging every day for a month) over on the Netlify Blog. A lot of the blog posts are about Next.js. There is a lot to like about Next.js. I just pulled one...
08:35 pm GMT - Mon, December 14, 2020
CSS Tricks Not Much
Whats one thing I learned about building websites this year? Not all that much.This year, unlike most previous years, I didnt explore a lot of new technologies. For obvious reasons, its been a difficu...
08:32 pm GMT - Mon, December 14, 2020
CSS Tricks Debugging CSS
High five to Ahmad Shadeed for releasing his new book, Debugging CSS. I think that’s a neat angle for a book on CSS. There are a ton of books on the general subject of CSS already, so not that t...
06:33 pm GMT - Mon, December 14, 2020
CSS Tricks MDN on GitHub
Looks like all the content of MDN is on GitHub now. That’s pretty rad. That’s been the public plan for a while. Chris Mills:We will be using GitHubs contribution tools and features, essent...
03:47 pm GMT - Mon, December 14, 2020
CSS Tricks Give Users Control: The Media Session API
Heres a scenario. You start a banging Kendrick Lamar track in one of your many open browser tabs. Youre loving it, but someone walks into your space and you need to pause it. Which tab is it? Browsers...
03:38 pm GMT - Mon, December 14, 2020
CSS Tricks HTTP Archives Annual State of the Web Report
The HTTP Archive looked at more than 7 million websites and compiled their annual report detailing how the sites were built. And theres an enormous wealth of information about how the web changed in 2...
11:35 pm GMT - Fri, December 11, 2020
CSS Tricks Make it Personal
One thing I noticed about building websites in 2020: despite all the social networks and publishing platforms craving our content, our stories, and our attention, people are somehow still building per...
11:30 pm GMT - Fri, December 11, 2020
CSS Tricks There is No Normal
This year I learned, or relearned maybe, that normal is subjective at best, and pretty misleading otherwise. If this forsaken year has taught us anything, its that there is no such thing as normal. Th...
03:52 pm GMT - Fri, December 11, 2020
CSS Tricks Lets Create a Lightweight Native Event Bus in JavaScript
An event bus is a design pattern (and while well be talking about JavaScript here, its a design pattern in any language) that can be used to simplify communications between different components. It ca...
03:52 pm GMT - Fri, December 11, 2020
CSS Tricks Why I love Tailwind
Max Stoiber wrote some interesting notes about why he loves Tailwind. (Max created styled-components, so he has some skin in the styling methodology game.) Theres a lot of great history in this post a...
10:42 pm GMT - Thu, December 10, 2020
CSS Tricks Unconventional Stock Image Sources
This year, I learned that there is a wide world of free stock imagery available beyond Unsplash and Pexels. You see, Ive been working on designing WordPress themes this year, and all images need to be...
10:36 pm GMT - Thu, December 10, 2020
CSS Tricks Its all relative.
I remember sitting in the back seat of our family’s Subaru station wagon. I was six and this was long before child carseats were a thing. My dad was at the wheel and my mom played 20 Questions w...
10:16 pm GMT - Thu, December 10, 2020
CSS Tricks Optimize Images According to Network and Device Constraints in React
Connectivity has evolved beyond recognition since the beginning of the internet. We are lightyears past dial up, these days, and can watch a video in high resolution on our smartphone while being conn...
07:34 pm GMT - Thu, December 10, 2020
CSS Tricks Using CSS Custom Properties to Adjust Variable Font Weights in Dark Mode
Black isnt always slimming.When recently testing a dark mode option for one of my sites, I experienced first-hand the issue that Robin Rendle addresses in this article. All of my page text headings a...
11:30 pm GMT - Wed, December 9, 2020
CSS Tricks 2020 was not a good year for learning
There, I said it.What did I learn about building websites in 2020? A lot. But what I learned is not nearly as important as how I learned it. So instead, I want to share a couple of strategies I used t...
03:52 pm GMT - Wed, December 9, 2020
CSS Tricks npm ruin dev
In 2020, I rediscovered the enjoyment of building a website with plain ol HTML, CSS, and JavaScript no transpilin, no compilin, no build tools other than my hands on the keyboard.Seeing as my persona...
03:37 pm GMT - Wed, December 9, 2020
CSS Tricks How to Create a Favicon That Changes Automatically
I found this Free Favicon Maker the other day. Its a nice tool to make a favicon (true to its name), but unlike other favicon generators, this one lets you create one from scratch starting with a char...
12:36 am GMT - Wed, December 9, 2020
CSS Tricks Very Extremely Practical CSS Art
I’ve always enjoyed the CSS art people create, but Ive never ventured into it much myself. I’m familiar with many of the tricks involved, but still find it surprising every time: the way p...
10:40 pm GMT - Tue, December 8, 2020
CSS Tricks TypeScript & Relevance
In our wide world of building for the web, we have every opportunity to talk about tools. We lunge to fill every gap we find in our projects with a definitive technological approach. Some of us are gi...
03:47 pm GMT - Tue, December 8, 2020
CSS Tricks Overlaying Video With Transparency While Wrangling Cross-Browser Support
As websites are becoming more and more dynamic when it comes to design, there is sometimes a need to incorporate complex, animated elements. There are many ways to do that from CSS transitions to 3D r...
03:45 pm GMT - Tue, December 8, 2020
CSS Tricks Creating websites with prefers-reduced-data
Spoiler alert: There is no support for it yet. But it is defined in the Media Queries Level 5 spec that includes other recent, but more familiar user preference features, like prefers-color-scheme and...
09:35 pm GMT - Mon, December 7, 2020
CSS Tricks The Power of Web Development Outside Tech
In 2020, I learned about the power of web development for organizations and nonprofits outside of tech. I learned that you can leverage your skills to affect change and build long-lasting partnerships...
09:34 pm GMT - Mon, December 7, 2020
CSS Tricks Late to Logical
2020 brought another wave of logical property features to major browsers and Ive thoroughly enjoyed my investment into logical, rather than physical, web styling. I feel like Ive learned a new way to ...
03:45 pm GMT - Mon, December 7, 2020
CSS Tricks Styling Comment Threads
Comment threads are one of those things that look really simple when executed right. When designing them yourself, you may find that they are rather deceptively simple. There is a lot that goes into d...
03:44 pm GMT - Mon, December 7, 2020
CSS Tricks Web Performance Calendar
The Web Performance Calendar just started up again this year. The first two posts so far are about, well, performance! First up, Rick Viscomi writes about the mythical fast web page:How you approach m...
09:20 pm GMT - Fri, December 4, 2020
CSS Tricks Cloudinary Fetch with Eleventy (Respecting Local Development)
This is about a wildly specific combination of technologies Eleventy, the static site generator, with pages with images on them that you ultimately want hosted by Cloudinary but I just wanna docume...
03:45 pm GMT - Fri, December 4, 2020
CSS Tricks How to Get Sticky and Full-Bleed Elements to Play Well Together
I had a unique requirement the other day: to build a layout with full-bleed elements while one element stays stuck to the top. This ended up being rather tricky to pull off so Im documenting it here i...
08:56 pm GMT - Thu, December 3, 2020
CSS Tricks Happier HTML5 form validation in Vue
It’s kind of neat that we can do input:invalid {} in CSS to style an input when it’s in an invalid state. Yet, used exactly like that, the UX is pretty bad. Say you have <input type="t...
08:55 pm GMT - Thu, December 3, 2020
CSS Tricks How to create a client-serverless Jamstack app using Netlify, Gatsby and Fauna
The Jamstack is a modern web development architecture based on client-side JavaScript, reusable APIs, and prebuilt Markup.The key aspects of a Jamstack application are the following:The entire app run...
03:07 pm GMT - Thu, December 3, 2020
CSS Tricks How to Animate a SVG with border-image
Lets take a look at how to combine the border-image property in CSS with animated SVGs that move around a border. In the process, well cover how to hand-craft resizable, nine-slice animated SVGs that ...
10:22 pm GMT - Wed, December 2, 2020
CSS Tricks Minimal Takes on Faking Container Queries
It’s sounding more and more likely that we’re actually going to get real container queries. Google is prototyping a syntax idea from David Baron and refined by Miriam Suzanne. Apparently, ...
06:17 pm GMT - Wed, December 2, 2020
CSS Tricks Amplify, Amplified
First, quickly: AWS Amplify has a new Admin UI. Amplify always had a CLI that helps you build projects by setting up stuff like auth, storage, and APIs. That’s super useful, but now, you can do ...
03:28 pm GMT - Wed, December 2, 2020
CSS Tricks How to Make an Area Chart With CSS
You might know a few ways to create charts with pure CSS. Some of them are covered here on CSS-Tricks, and many others can be found on CodePen, but I havent seen many examples of area charts (imagine ...
08:47 pm GMT - Tue, December 1, 2020
CSS Tricks Painting With the Web
Matthias Ott, comparing how painter Gerhard Richter paints (do stuff, step back, take a look) to what can be the website building process and what can wreck it:[…] this reminds me of designing a...
06:00 pm GMT - Tue, December 1, 2020
CSS Tricks A Microsite Showcasing Coding Fonts
We made one! It’s open source if you want to make it better or fix things.There are quite a few purpose-built fonts for writing code. The point of this site is to show you some of the nicest opt...
03:56 pm GMT - Tue, December 1, 2020
CSS Tricks How to Add Text in Borders Using Basic HTML Elements
Some HTML elements come with preset designs, like the inconveniently small squares of <input type="checkbox"> elements, the limited-color bars of <meter> elements, and the something ab...
03:56 pm GMT - Tue, December 1, 2020
CSS Tricks Under-Engineered Responsive Tables
I first blogged about responsive data tables in 2011. When responsive web design was first becoming a thing, there were little hurdles like data tables that had to be jumped. The nature of <table&...
12:45 am GMT - Tue, December 1, 2020
CSS Tricks Native CSS Masonry Layout In CSS Grid
Rachel Andrew introducing the fact that masonry layout is going to be a thing in native CSS via CSS grid layout. The thing with masonry is that we can already do it for the most part, but there is jus...
07:35 pm GMT - Mon, November 30, 2020
CSS Tricks Super Tiny Icons
A bunch of SVG icons (of popular things) all under 1KB. SVG is awesome for golfing. I was going to add a CodePen logo but there is already one in there at 375 Bytes. I’ve got one at 208 Bytes, b...
03:49 pm GMT - Mon, November 30, 2020
CSS Tricks Lots of Ways to Use Math.random() in JavaScript
Math.random() is an API in JavaScript. It is a function that gives you a random number. The number returned will be between 0 (inclusive, as in, its possible for an actual 0 to be returned) and 1 (exc...