Your Web News in One Place

Articles by CSS Tricks from March 2020

Help Webnuz

Referal links:

Sign up for GreenGeeks web hosting
< Return to CSS Tricks details.
09:27 pm GMT - Mon, March 30, 2020
CSS Tricks gqless
This is so cool. I mean, GraphQL is already cool. It’s very satisfying to write an understandable-looking query for whatever you want and then use that data in templates. But what if you didn...
02:20 pm GMT - Mon, March 30, 2020
CSS Tricks 4 CSS Grid Properties (and One Value) for Most of Your Layout Needs
CSS Grid provides us with a powerful layout system for websites. The CSS-Tricks guide gives you a comprehensive overview of Grids properties with layout examples. What were going to do here is a rever...
02:20 pm GMT - Mon, March 30, 2020
CSS Tricks How They Fit Together: Transform, Translate, Rotate, Scale, and Offset
Firefox 72 was first out of the gate with "independent transforms." That is, instead of having to combine transforms together, like:.el { transform: rotate(10deg) scale(0.95) translate(10px, 10px);}....
01:34 pm GMT - Sat, March 28, 2020
CSS Tricks Creating a Pencil Effect in SVG
Scott Turner, who has an entire blog "Exploring procedural generation and display of fantasy maps", gets into why vector graphics seems on these surface why it would be bad for the look of a pencil st...
09:13 pm GMT - Fri, March 27, 2020
CSS Tricks How to use CSS Scroll Snap
Nada Rifki demonstrates the scroll-snap-type and scroll-snap-alignCSS properties. I like that the demo shows that the items in the scrolling container can be different sizes. It is the edges...
09:12 pm GMT - Fri, March 27, 2020
CSS Tricks Emergency Website Kit
Heres an outstanding idea from Max Bck. Hes created a boilerplate project for building websites that fit within a single HTTP request. This is extremely important for websites that contain critical in...
02:37 pm GMT - Fri, March 27, 2020
CSS Tricks Creating an Editable Site with Google Sheets and Eleventy
Remember Tabletop.js? We just covered it a little bit ago in this same exact context: building editable websites. Its a tool that turns a Google Sheet into an API, that you as a developer can hit for...
02:37 pm GMT - Fri, March 27, 2020
CSS Tricks Maintaining Performance
Real talk from Dave:I, Dave Rupert, a person who cares about web performance, a person who reads web performance blogs, a person who spends lots of hours trying to keep up on best practices, a person ...
09:31 pm GMT - Thu, March 26, 2020
CSS Tricks Consistent Backends and UX: How Do New Algorithms Help?
Article SeriesWhy should you care?What can go wrong?What are the barriers to adoption?How do new algorithms help?In previous articles, we explained what consistency is, the difference between "strong"...
09:26 pm GMT - Thu, March 26, 2020
CSS Tricks Get Static
In this piece, Eric Meyer argues that performance is more important than ever right now especially for websites that contain critical information for the public:If you are in charge of a web site tha...
03:04 pm GMT - Thu, March 26, 2020
CSS Tricks How to Repeat Text as a Background Image in CSS Using element()
Theres a design trend Ive seen popping up all over the place. Maybe youve seen it too. Its this sort of thing where text is repeated over and over. A good example is the price comparison website, GoCo...
03:03 pm GMT - Thu, March 26, 2020
CSS Tricks Add Beautiful Images with the Unsplash API
Perhaps you know Unsplash? I'd wager it's the most popular stock photography site out there for two big reasons:Every photo on there is pretty darn niceEvery photo is entirely free even for commercial...
12:40 pm GMT - Thu, March 26, 2020
CSS Tricks Value Bubbles for Range Inputs
HTML5 range inputs, in supported browsers and by design, don't show the user the actual value they are submitting. If you want to use the cool slider, but show the value, you'll have to do that yourse...
02:36 am GMT - Thu, March 26, 2020
CSS Tricks How to Animate Text with SVG and CSS
The other day I was helping my pal Jez work Dept. of Enthusiasm, the site for his newsletter, and I had a thought. What if we made the word enthusiasm in the title animate a little bit? Like, what if ...
02:35 am GMT - Thu, March 26, 2020
CSS Tricks CSS Viewport Units
Deep dive from Ahmad. I like the coverage of vmin and vmax, which I think I don't reach for as often as I should. I'm thinking that if you are doing something highly directional (e.g. a full bleed tri...
03:10 pm GMT - Wed, March 25, 2020
CSS Tricks An Introduction to MDXJS
Markdown has traditionally been a favorite format for programmers to write documentation. Its simple enough for almost everyone to learn and adapt to while making it easy to format and style content. ...
03:09 pm GMT - Wed, March 25, 2020
CSS Tricks Auto-Growing Inputs & Textareas
By default, <input> and <textarea> elements don't change size based on the content they contain. In fact, there isn't any simple HTML or CSS way to make them do that. Kinda funny, as t...
07:59 pm GMT - Tue, March 24, 2020
CSS Tricks Did You Know the Ordered List Element Has Start and Reversed Attributes?
I sure didn't! Tomek Sukowsi shows how we can reverse the numbering of ordered lists with a simple HTML attribute:<ol reversed<liApple</li<liBanana</li<liPear</li</olCo...
06:43 pm GMT - Tue, March 24, 2020
CSS Tricks Emojis as Favicons
Lea Verou had a dang genius idea to use an emoji as a favicon. The idea only recently possible as browsers have started supporting SVG for favicons. Chuck an emoji inside an SVG <text element and ...
02:58 pm GMT - Tue, March 24, 2020
CSS Tricks Indicating Scroll Position on a Page With CSS
Scrolling is something we all know and do on the web to the extent that its an expectation or perhaps even a habit, like brushing our teeth. Thats probably why we dont put too much thought into design...
02:58 pm GMT - Tue, March 24, 2020
CSS Tricks Performance Links
I've had a number of browser tabs open to articles all related to web performance and gosh darn it if blogging them is a way for me get some closure. They are all good! Manuel Matuzovic, Why 543 KB ke...
11:17 pm GMT - Mon, March 23, 2020
CSS Tricks Different Favicon for Development
I bet a lot of us tend to have the production website and the development website up simultaneously a lot. It's almost a developer clich at this point to make some local change, refresh, refresh, refr...
07:08 pm GMT - Mon, March 23, 2020
CSS Tricks CSS :nth-of-class selector
That's not a thing. But it kinda is! Bram covers how frustrating .bar:nth-child(2) is. It's not "select the second element of class .bar." It's "select the second element if it also has the class .bar...
02:37 pm GMT - Mon, March 23, 2020
CSS Tricks Building a Real-Time Chat App with React and Firebase
In this article, well cover key concepts for authenticating a user with Firebase in a real-time chat application. Well integrate third-party auth providers (e.g. Google, Twitter and GitHub) and, once ...
02:36 pm GMT - Mon, March 23, 2020
CSS Tricks CSS Can Influence Screenreaders
Ben Myers covers some clear examples of where CSS totally changes what some screen readers announce. For example, some screenreader will see text-transform: uppercase; on a button label that says "Add...
09:22 pm GMT - Sun, March 22, 2020
CSS Tricks Flexible Repeating SVG Masks
Tyler Gaw reminds us that mask-image can repeat, resize, and move just like background-image does, which is fun to combine and play with. I could see it being a fun option for an <hr, like Sara is...
10:58 pm GMT - Fri, March 20, 2020
CSS Tricks Auto-Archival
I'm sure most of us have used the ol' Wayback Machine to access some site that's gone offline. I don't actually know how it decides what sites to archive and when, but you can tell it to save pages. T...
10:57 pm GMT - Fri, March 20, 2020
CSS Tricks Client-Side Image Editing on Mobile
Michael Scharnagl:Ever wanted to easily convert an image to a grayscale image on your phone? I do sometimes, and that's why I build a demo using the Web Share Target API to achieve exactly that.For th...
02:12 pm GMT - Fri, March 20, 2020
CSS Tricks Neumorphism and CSS
Neumorphism (aka neomorphism) is a relatively new design trend and a term thats gotten a good amount of buzz lately. Its aesthetic is marked by minimal and real-looking UI thats sort of a new take on ...
02:10 pm GMT - Fri, March 20, 2020
CSS Tricks CSS2JS
To add inline styles on an element in JSX, you have to do it in this object syntax, like:<div style={{ fontSize: 16, marginBottom: "1rem"}}Content</divThat might look a little weird to us fo...
06:44 pm GMT - Thu, March 19, 2020
CSS Tricks React Suspense in Practice
This post is about understanding how Suspense works, what it does, and seeing how it can integrate into a real web app. We'll look at how to integrate routing and data loading with Suspense in React. ...
02:48 pm GMT - Thu, March 19, 2020
CSS Tricks Consistent Backends and UX: What are the Barriers to Adoption?
There are very few scenarios in which an eventually consistent database is preferable over a strongly consistent database. Further, in a multi-region application scenario where scaling is necessary, c...
10:25 pm GMT - Wed, March 18, 2020
CSS Tricks A Few Background Patterns Sites
If I need a quick background pattern to spruce something up, I often think of the CSS3 Patterns Gallery. Some of those are pretty intense but remember they are easily editable because they are just CS...
09:31 pm GMT - Wed, March 18, 2020
CSS Tricks What Does `playsinline` Mean in Web Video?
I got myself confused about this the other day, went around searching for an answer and came up empty on finding something clear. The answer actually is quite clear and I feel a little silly for not k...
02:14 pm GMT - Wed, March 18, 2020
CSS Tricks Playing With Particles Using the Web Animations API
When it comes to motion and animations, there is probably nothing I love more than particles. This is why every time I explore new technologies I always end up creating demos with as many particles as...
02:13 pm GMT - Wed, March 18, 2020
CSS Tricks Flexbox and absolute positioning
Chen Hui Jing notes that when you absolutely position a flex item, it's no longer part of the flex layout. Except... it kinda is a little bit. If you make the child position: absolute; but don't apply...
09:05 pm GMT - Tue, March 17, 2020
CSS Tricks A Complete Guide to calc() in CSS
CSS has a special calc() function for doing basic math. Here's an example:.main-content { /* Subtract 80px from 100vh */ height: calc(100vh - 80px);}In this guide, let's cover just about everything ...
07:32 pm GMT - Tue, March 17, 2020
CSS Tricks Tools for Optimizing SVG
This is our straight-to-the-point list of SVG optimizing tools across a number of categories. They are all largely based around SVGO, but how you use it depends. There are web apps, desktop apps, apis...
02:54 pm GMT - Tue, March 17, 2020
CSS Tricks How to Create a Skip to Content Link
Skip links are little internal navigation links that help users move around a page. Its possible youve never actually seen one before because theyre often hidden from view and used as an accessibility...
02:54 pm GMT - Tue, March 17, 2020
CSS Tricks 15 Things to Improve Your Website Accessibility
This is a really great list from Bruce. There is a lot of directly actionable stuff here. Send it around to your team and make it something that you all go through together. Here's a little one that p...
01:53 pm GMT - Tue, March 17, 2020
CSS Tricks WooCommerce 4.0 & WooCommerce Payments Beta
Y'all know WooCommerce: it's a plugin for WordPress that adds robust eCommerce functionality to your site. Notably, like WordPress itself, it's open-source and free. You only pay for things if you nee...
11:44 pm GMT - Mon, March 16, 2020
CSS Tricks CSS X
My name appears in an article from Bert Bos (co-author of the original CSS spec), so I'll consider that a life accomplishment. Berts makes the point that CSS has evolved and the working group versions...
08:46 pm GMT - Mon, March 16, 2020
CSS Tricks Stop Using Dropdown
Adrian Roselli notes that it might actually mean:A <select> menuAn ARIA Listbox, Combobox, Menu, or Disclosure WidgetAn input with a <datalist>An input with autocompleteA <details&...
02:40 pm GMT - Mon, March 16, 2020
CSS Tricks How to Make Repeating Border Images
I just saw this cool little site from Max Bittker: broider. You design an image on a 9-slice grid (except the middle part) and it will produce an image for you to use with border-image along with the ...
02:40 pm GMT - Mon, March 16, 2020
CSS Tricks Build a Node.js Tool to Record and Compare Google Lighthouse Reports
In this tutorial, Ill show you step by step how to create a simple tool in Node.js to run Google Lighthouse audits via the command line, save the reports they generate in JSON format and then compare ...
01:31 pm GMT - Sun, March 15, 2020
CSS Tricks Using the HTML title attribute
Steve Faulkner:User groupsnot well servedby use of thetitleattribute Mobile phone users. Keyboard only users. Screen magnifier users. Screen reader users. Users with fine motor skill impairments. User...
01:46 am GMT - Sun, March 15, 2020
CSS Tricks The CSS Podcast
From Adam and Una at Google, a podcast just about CSS. I believe I'm contractually obliged to link to that! Just one episode out so far, a shorty about the box model. Last time I wrote up podcasts I l...
08:19 pm GMT - Fri, March 13, 2020
CSS Tricks weeds of specificity
Lara Schenck:[...] with WordPress child themes, you are all but guaranteed to get into the weeds of specificity, hunting around theme stylesheets that you didnt author, trying to figure out what exist...
02:31 pm GMT - Fri, March 13, 2020
CSS Tricks Get Started Building GraphQL APIs With Node
We all have a number of interests and passions. For example, Im interested in JavaScript, 90s indie rock and hip hop, obscure jazz, the city of Pittsburgh, pizza, coffee, and movies starring John Luri...
02:31 pm GMT - Fri, March 13, 2020
CSS Tricks A Guide to Handling Browser Events
In this post, Sarah Chima walks us through how we can work with browser events, such as clicking, using JavaScript. Theres a ton of great info in here! If JavaScript isnt your strong suit, I think thi...
09:39 pm GMT - Thu, March 12, 2020
CSS Tricks Two Steps Forward, One Step Back
Brent Jackson says CSS utility libraries failed somewhat:Eventually, you'll need to add one-off styles that just aren't covered by the library you're using, and there isn't always a clear way to exten...
02:40 pm GMT - Thu, March 12, 2020
CSS Tricks Programming Sass to Create Accessible Color Combinations
We are always looking to make the web more accessible. Color contrast is just math, so Sass can help cover edge cases that designers might have missed.The post Programming Sass to Create Accessible Co...
02:34 pm GMT - Thu, March 12, 2020
CSS Tricks Consistent Backends and UX: What Can Go Wrong?
Article SeriesWhy should you care?What can go wrong?What are the barriers to adoption? (Coming soon)How do new algorithms help? (Coming soon)In the previous article, we explained what strong (vs. even...
08:52 pm GMT - Wed, March 11, 2020
CSS Tricks Careful with Nested `display: grid; height: 100%;`
It's not every day you can feel CSS be slow at something. Reddit user jgbbrd discovered nesting grid containers that all have 100% height can cause many-seconds of rendering delay. Probably not someth...
02:11 pm GMT - Wed, March 11, 2020
CSS Tricks How to Make a Line Chart With CSS
Line,  bar, and pie charts are the bread and butter of dashboards and are the basic components of any data visualization toolkit. Sure, you can use SVG or a JavaScript chart library like Chart.js...
02:11 pm GMT - Wed, March 11, 2020
CSS Tricks Sass !default and themeable design systems
This is a great blog post from Brad Frost where he walks us through an interesting example. Lets say were making a theme and we have some Sass like this:.c-text-input { background-color: $form-backgr...
02:10 pm GMT - Wed, March 11, 2020
CSS Tricks Fluid Width Video
IN A WORLD of responsive and fluid layouts on the web, ONE MEDIA TYPE stands in the way of perfect harmony: video. There are lots of ways in which video can be displayed on your site. You might be sel...
09:13 pm GMT - Tue, March 10, 2020
CSS Tricks Block Links Are a Pain (and Maybe Just a Bad Idea)
As we noted in our complete guide, you can put an <a href=""> link around whatever chunks of HTML you like. Let's call that a "block link." Like you are wanting to link up an entire "Card" of ...
02:35 pm GMT - Tue, March 10, 2020
CSS Tricks Considerations When Choosing Fonts for a Multilingual Website
As a front-end developer working for clients all over the world, I've always struggled to deal with multilingual websites  especially cases where both right-to-left (RTL) and&...
02:33 pm GMT - Tue, March 10, 2020
CSS Tricks Make Yourself a Little API With Netlify Functions
Here's an example of a nice little use case for cloud functions. Glitch has this great package of friendly words. Say you wanted to randomly generate "happy-elephant" or "walking-tree", and you need t...
08:43 pm GMT - Mon, March 9, 2020
CSS Tricks Negative Margins
PPK digs into the subject, which he found woefully undercovered in web tech documentation. Our entry doesn't mention them at all, which I'll aim to fix. Agree on this situation:This is by far the most...
08:43 pm GMT - Mon, March 9, 2020
CSS Tricks I Pressed B. You Wouldnt Believe What Happened Next
This talk by Marcin Wichary is beyond both enthusiastic and outstanding all about the complexity of UI design, typography, and the lengths his team at Figma has gone to make sure that doing somethin...
02:05 pm GMT - Mon, March 9, 2020
CSS Tricks Adventures in CSS Semi-Transparency Land
Recently, I was asked to make some tweaks to a landing page and, among the things I found in the code, there were two semitransparent overlays both with the same RGB values for the background-color ...
02:04 pm GMT - Mon, March 9, 2020
CSS Tricks Use a:visited in your CSS stylesheet
Evert Pot:Unfortunately, when setting a new color (e.g. a { color: #44F }) the purple visited link feature also gets disabled. I think this is a shame, as theres so many instances where youre going th...
11:29 pm GMT - Sun, March 8, 2020
CSS Tricks Geoffs Redesign Posts
I love it when people redesign "in the open" and write about it. I'd just like to shout out to our own Geoff who has been doing this for 3 months now. He started in late December last year. He's been ...
06:58 pm GMT - Sat, March 7, 2020
CSS Tricks Google Fonts Variable Fonts
I see Google Fonts rolled out a new design (Tweet). Compared to the last big redesign, this feels much more iterative. I can barely tell the difference really, except it's blue instead of red and this...
09:18 pm GMT - Fri, March 6, 2020
CSS Tricks What to Use Instead of Number Inputs
You might reach for <input type="number> when you're, you know, trying to collect a number in a form. But it's got all sorts of issues. For one, sometimes what you want kinda looks like a numb...
09:18 pm GMT - Fri, March 6, 2020
CSS Tricks Currying in CSS
Funny timing on this I was just looking at the website for Utopia (which is a responsive type project which I hate to admit I don't fully understand) and I came across some CSS they show off that look...
03:23 pm GMT - Fri, March 6, 2020
CSS Tricks Creating a Modal Image Gallery With Bootstrap Components
Have you ever clicked on an image on a webpage that opens up a larger version of the image with navigation to view other photos?Some folks call it a pop-up. Others call it a lightbox. Bootstrap calls ...
03:23 pm GMT - Fri, March 6, 2020
CSS Tricks The 3 Laws of Serverless
Burke Holland thinks that to "build applications without thinking about servers" is a pretty good way to describe serverless, but...Nobody really thinks about servers when they are writing their code....
12:35 am GMT - Fri, March 6, 2020
CSS Tricks Animating CSS Width and Height Without the Squish Effect
The first rule of animating on the web: don't animate width and height. It forces the browser to recalculate a bunch of stuff and it's slow (or "expensive" as they say). If you can get away with it, a...
12:35 am GMT - Fri, March 6, 2020
CSS Tricks Consistent Backends and UX: Why Should You Care?
More than ever, new products aim to make an impact on a global scale, and user experience is rapidly becoming the determining factor for whether they are successful or not.The post Consistent Backends...
03:27 pm GMT - Thu, March 5, 2020
CSS Tricks The Slideout Footer
A fascinating new site called The Markup just launched. Tagline: Big Tech Is Watching You. Were Watching Big Tech. Great work from Upstatement. The content looks amazing, but of course, around he...
03:24 pm GMT - Thu, March 5, 2020
CSS Tricks Automated Selenium Testing with Jest and LambdaTest
You know what the best thing is about building and running automated browser tests is? It means that the site you're doing it on really matters. It means you're trying to take care of that site by mak...
11:39 pm GMT - Wed, March 4, 2020
CSS Tricks JavaScript Libraries Are Almost Never Updated Once Installed
Some commentary from Zack Bloom on the Cloudflare Blog, looking at requests to CDNJS for versions of jQuery. What we dont see is a decline in our old versions which come close to the volume of growth ...
11:39 pm GMT - Wed, March 4, 2020
CSS Tricks What React Does (and Doesnt Do)
With a name as big as React, it's bound to cause some Stream-Crossing Confusion, as I like to call it. How do you center a <div> in React? Dave Ceddia: React cares exactly zero about styling. ...
03:26 pm GMT - Wed, March 4, 2020
CSS Tricks How We Created a Static Site That Generates Tartan Patterns in SVG
Tartan is a patterned cloth thats typically associated with Scotland, particularly their fashionable kilts. On tartanify.com, we gathered over 5,000 tartan patterns (as SVG and PNG files), taking care...
03:26 pm GMT - Wed, March 4, 2020
CSS Tricks How I think about solving problems
Nicholas C. Zakas:Eventually, I settled on a list of questions I would ask myself for each problem as it arose. I found that asking these questions, in order, helped me make the best decision possible...
10:20 pm GMT - Tue, March 3, 2020
CSS Tricks 4 Ways to Animate the Color of a Text Link on Hover
Lets create a pure CSS effect that changes the color of a text link on hover but slide that new color in instead of simply swapping colors.There are four different techniques we can use to do this. Le...
10:20 pm GMT - Tue, March 3, 2020
CSS Tricks Just Dropping Some Type Links
I've had a bunch of tabs open that just so happen to all be related to typography, so I figured I'd give myself the mental release of closing them by blogging them. How's that for a blog post format f...
05:33 pm GMT - Tue, March 3, 2020
CSS Tricks Vue.js: The Documentary
Hey how cool! A documentary about Vue! Good timing as it looks like VueConf is happening right now. (Reminder we have a site for conferences to tell you stuff like that). Sarah appears in it (about 21...
03:18 pm GMT - Tue, March 3, 2020
CSS Tricks What I Like About Craft CMS
Looking at the CMS scene today, there are upwards of 150 options to choose from and thats not including whatever home-grown custom alternatives people might be running. The term Content Management Sy...
03:18 pm GMT - Tue, March 3, 2020
CSS Tricks Making Things Better: Redefining the Technical Possibilities of CSS
(This is a sponsored post.)Robin recently lamented the common complaint that CSS is frustrating. There are misconceptions about what it is and what it does. There are debates about what kind of langua...
08:04 pm GMT - Mon, March 2, 2020
CSS Tricks Considerations for Creating a Card Component
Here's a Card component in React:const Card = props ={ return( <div className="card"<h2{props.title}</h2<p{props.content}</p</div)}It might be pretty useful! If you end up ...
02:54 pm GMT - Mon, March 2, 2020
CSS Tricks Unfortunately, clip-path: path() is Still a No-Go
I was extremely excited when I first heard that clip-path: path() was coming to Firefox. Just imagine being able to easily code a breathing box like the one below with just one HTML element and very l...
02:54 pm GMT - Mon, March 2, 2020
CSS Tricks Selectors Explained
Have you ever found yourself either writing a CSS selector that winds up looking confusing as heck, or seen one while reading through someone's code? That happened to me the other day.Here's what I wr...
02:48 pm GMT - Sat, February 29, 2020
CSS Tricks HTML: The Inaccessible Parts
<input type="number", <input type="date", <input type="search", <select multiple, <progress, <meter, <dialog, <details<summary, <video, <div onclick, <d...