Your Web News in One Place

Articles by CSS Tricks from April 2020

Help Webnuz

Referal links:

Sign up for GreenGeeks web hosting
< Return to CSS Tricks details.
09:17 pm GMT - Wed, April 29, 2020
CSS Tricks Click Once, Select All; Click Again, Select Normally
A bonafide CSS trick from Will Boyd!Force all the content of an element to be selected when clicked with user-select: all;If you click a second time, let the user select just parts of the text as norm...
03:50 pm GMT - Wed, April 29, 2020
CSS Tricks [David Barons] Thoughts on an implementable path forward for Container Queries
That’s the title of a public post from David Baron, a Principal Engineer at Firefox, with thoughts toward container queries. I know a lot of people have been holding their breath waiting for Dav...
02:50 pm GMT - Wed, April 29, 2020
CSS Tricks Alpine.js: The JavaScript Framework Thats Used Like jQuery, Written Like Vue, and Inspired by TailwindCSS
We have big JavaScript frameworks that tons of people already use and like, including React, Vue, Angular, and Svelte. Do we need another JavaScript library? Lets take a look at Alpine.js and you can ...
10:10 pm GMT - Tue, April 28, 2020
CSS Tricks How to Redirect a Search Form to a Site-Scoped Google Search
This is just a tiny little trick that might be helpful on a site where you don’t have the time or desire to build out a really good on-site search solution. Google.com itself can perform searche...
02:46 pm GMT - Tue, April 28, 2020
CSS Tricks Using Formik to Handle Forms in React
There is no doubt that web forms play an integral role in our web site or applications. By default, they provide a useful set of elements and features from legends and fieldsets to native validation ...
09:32 pm GMT - Mon, April 27, 2020
CSS Tricks Static or Not?
A quick opinion piece by Kev Quirk: Why I Dont Use A Static Site Generator. Kev uses WordPress:Want to blog on my iPad? I can. Want to do it on my phone? No problem. On a machine I dont norm...
02:50 pm GMT - Mon, April 27, 2020
CSS Tricks Advice for Writing a Technical Resume
Marco Rogers asked a very good question on Twitter:I talk to a lot of people new to tech from non-traditional backgrounds, e.g. bootcamps or self-taught. I'm looking for good information for those...
01:30 pm GMT - Sun, April 26, 2020
CSS Tricks The Cost of Javascript Frameworks
I expect this post from Tim Kadlec to be quoted in every performance conference talk for the next few years. There is a lot of data here, so please check it out for yourself, but the short story is th...
01:29 pm GMT - Sat, April 25, 2020
CSS Tricks @property
The @property is totally new to me, but I see it’s headed to Chrome, so I suppose it’s good to know about!There is a draft spec and an “intent to ship” document. The code from ...
07:29 pm GMT - Fri, April 24, 2020
CSS Tricks How to Make a CSS-Only Carousel
We mentioned a way to make a CSS-only carousel in a recent issue of the newsletter and I thought that a more detailed write up would be interesting and capture some of my thoughts on making one.So, h...
06:35 pm GMT - Fri, April 24, 2020
CSS Tricks The title Front-End Developer is obsolete.
That title is from the opening tweet of a thread from Benjamin De Cock. I wouldn’t go that far, myself. What I like about the term is that Front-End literally means the browser, and while the jo...
03:49 pm GMT - Fri, April 24, 2020
CSS Tricks Chrome System Fonts Snafu
There was just a bug late last year where system fonts (at least on Mac, I don’t know what the story was on other platforms) in Chrome appeared too thin and tracked-in at small sizes and too thi...
02:58 pm GMT - Fri, April 24, 2020
CSS Tricks SVG, Favicons, and All the Fun Things We Can Do With Them
Favicons are the little icons you see in your browser tab. They help you understand which site is which when youre scanning through your browsers bookmarks and open tabs. Theyre a neat part of interne...
02:58 pm GMT - Fri, April 24, 2020
CSS Tricks Different Approaches to Responsive CSS Motion Path
As a follow-up to Jhey’s recent post on responsive motion paths, Michelle Barker notes that another approach could be to just transform: scale() the whole dang element. The trade-off there is th...
09:43 pm GMT - Thu, April 23, 2020
CSS Tricks Dark mode and variable fonts
Not so long ago, we wrote about dark mode in CSS and Ive been thinking about how white text on a black background is pretty much always harder to read than black text on a white background. After thin...
02:56 pm GMT - Thu, April 23, 2020
CSS Tricks Accessible Font Sizing, Explained
The Web Content Accessibility Guidelines (WCAG), an organization that defines standards for web content accessibility, does not specify a minimum font size for the web.But we know theres such a thing ...
02:56 pm GMT - Thu, April 23, 2020
CSS Tricks Innovating on Web Monetization: Coil and Firefox Reality
I still think Coil is cool. I have it installed on CSS-Tricks as a publisher and money trickles in. I have a paid account and I trickle out money to other sites that use it. I wrote about all that las...
02:56 pm GMT - Thu, April 23, 2020
CSS Tricks Rethinking Twitter as a Serverless App
In a previous article, we showed how to build a GraphQL API with FaunaDB. We’ve also written a series of articles [1, 2, 3, 4] explaining how traditional databases built for global scalability h...
08:19 pm GMT - Wed, April 22, 2020
CSS Tricks Some Little Improvements to My VS Code Workflow (Workspaces, Icons, Tasks)
I did a little thing the other day that I didn’t know was possible until then. I had a project folder open in VS Code like I always do, and I added another different root folder to the window. I...
08:19 pm GMT - Wed, April 22, 2020
CSS Tricks My Visual Studio Code Setup: Extensions and Themes
Matthias Ott’s posted his VS Code setup. I find lists like this (I rounded up some recent updates of my own) irresistible, probably because, like y’all, I spend an awful lot of time in VS ...
02:54 pm GMT - Wed, April 22, 2020
CSS Tricks How to Add Lunr Search to your Gatsby Website
The Jamstack way of thinking and building websites is becoming more and more popular.Have you already tried Gatsby, Nuxt, or Gridsome (to cite only a few)? Chances are that your first contact was a Wo...
02:54 pm GMT - Wed, April 22, 2020
CSS Tricks Puzzles and Mysteries
Bob Hoffman:Puzzles, [Malcom Gladwell] wrote, are problems for which there is not enough information. An example of a puzzle: Where is Jimmy Hoffa buried? If we had more information, we would know the...
09:01 pm GMT - Tue, April 21, 2020
CSS Tricks Fake Code
Here’s a fun little idea from Knut Synstad. You give it the URL of a GitHub Gist and it converts the Gist into grayscale rounded blobs (SVG) that sorta look like code if you squint. Maybe fun fo...
02:43 pm GMT - Tue, April 21, 2020
CSS Tricks Building a Scalable CSS Architecture With BEM and Utility Classes
Maintaining a large-scale CSS project is hard. Over the years, we’ve witnessed different approaches aimed at easing the process of writing scalable CSS. In the end, we all try to meet the follow...
02:43 pm GMT - Tue, April 21, 2020
CSS Tricks Constrained CSS grids without `max-width`
Ain’t nothing wrong with max-width, but Ethan makes a point in the last sentence:Rather than simply defaulting to max-width as a constraint, I can use the empty space around ...
01:04 pm GMT - Tue, April 21, 2020
CSS Tricks Drupal to Jamstack
I’ve been harping for a while that Jamstack doesn’t necessarily mean throwing away your old CMS. In fact, I’d argue that Jamstack is at it’s most powerful when paired with a sy...
11:08 pm GMT - Mon, April 20, 2020
CSS Tricks Can JavaScript Detect the Browsers Zoom Level?
No, not really.My first guess was that this was intentionally not exposed in browsers because browsers intentionally don’t want us fighting it or making well-intentioned but bad-outcome decisio...
10:15 pm GMT - Mon, April 20, 2020
CSS Tricks The Contrast Triangle
Chip Cullen:Lets say youre building a site, and youre working with a designer. They come to you with some solid designs, and youre ready to go. Youre also a conscientious front end developer and you l...
01:58 pm GMT - Mon, April 20, 2020
CSS Tricks Creating Playful Effects With CSS Text Shadows
Lets have a look at how we can use the CSS text-shadow property to create truly 3D-looking text. You might think of text-shadow as being able to apply blurred, gradient-looking color behind text, and ...
08:23 pm GMT - Sat, April 18, 2020
CSS Tricks How (some) good corporate engineering blogs are written
Interesting research from Dan Luu:… it’s pretty common for my personal blog to get more traffic than the entire corp eng blog for a company with a nine to ten figure valuation and it’...
09:50 pm GMT - Fri, April 17, 2020
CSS Tricks Front-End Challenges
My favorite way to level up as a front-end developer is to do the work. Literally just build websites. If you can do it for money, great, you should. If the websites you make can help yourself or anyo...
08:28 pm GMT - Fri, April 17, 2020
CSS Tricks Pseudo-Randomly Adding Illustrations with CSS
Between each post of Eric Meyers blog theres this rather lovely illustration that can randomly be one of these five options:Eric made each illustration into a separate background image then switches o...
03:08 pm GMT - Fri, April 17, 2020
CSS Tricks Better Form Inputs for Better Mobile User Experiences
Heres one simple, practical way to make apps perform better on mobile devices: always configure HTML input fields with the correct type, inputmode, and autocomplete attributes. While these three attri...
08:15 pm GMT - Thu, April 16, 2020
CSS Tricks Thank You, Christopher Schmitt
It’s incredibly sad that Christopher Schmitt passed away last week. I keep thinking about how Christopher was one of the best dudes I knew. Just incredibly kind and thoughtful all the way throug...
08:01 pm GMT - Thu, April 16, 2020
CSS Tricks Creating Color Themes With Custom Properties, HSL, and a Little calc()
Before the advent of CSS custom properties (we might call them variables in this article as thats the spirit of them), implementing multiple color schemes on the same website usually meant writing sep...
07:19 pm GMT - Thu, April 16, 2020
CSS Tricks Jetpack Instant Search!
Jetpack has had a search feature for a while. Flip it on, and it replaces your built-in WordPress search (which is functional, but not particularly good) with an Elasticsearch-powered solution that is...
09:49 pm GMT - Wed, April 15, 2020
CSS Tricks CSS Scrollbar With Progress Meter
Scrollbars are natural progress meters. How far the scrollbar is down or across is how much progress has been made scrolling through that element (often the entire page). But, they are more like progr...
02:51 pm GMT - Wed, April 15, 2020
CSS Tricks Create a Responsive CSS Motion Path? Sure We Can!
There was a discussion recently on the Animation at Work Slack: how could you make a CSS motion path responsive? What techniques would be work? This got me thinking.A CSS motion path allows us to anim...
12:34 am GMT - Wed, April 15, 2020
CSS Tricks How the Vue Composition API Replaces Vue Mixins
Looking to share code between your Vue components? If you’re familiar with Vue 2, you’ve probably used a mixin for this purpose. But the new Composition API, which is available now as a pl...
02:57 pm GMT - Tue, April 14, 2020
CSS Tricks Using CSS to Set Text Inside a Circle
You want to set some text inside the shape of a circle with HTML and CSS? Thats crazy talk, right?Not really! Thanks to shape-outside and some pure CSS trickery it is possible to do exactly that.Howev...
09:51 pm GMT - Mon, April 13, 2020
CSS Tricks No-Class CSS Frameworks
I linked up Water.css not long ago as an interesting sort of CSS framework. No classes. No <h2 class="is-title">. You just use semantic HTML and get styles. Is that going to “scale”...
02:41 pm GMT - Mon, April 13, 2020
CSS Tricks Styling in the Shadow DOM With CSS Shadow Parts
Safari 13.1 just shipped support for CSS Shadow Parts. That means the ::part() selector is now supported in Chrome, Edge, Opera, Safari, and Firefox. Well see why its useful, but first a recap on shad...
12:32 pm GMT - Sun, April 12, 2020
CSS Tricks When debugging, your attitude matters
Julia Evans: I was debugging some CSS last week, and I think that post is missing something important: your attitude. Now Im not a very good CSS developer yet. Ive never written CSS professionally an...
10:01 pm GMT - Fri, April 10, 2020
CSS Tricks Thinking in Behaviors, Not Screen Sizes
Chase McCoy wrote a nifty post about the gap problem when making a grid of items. His argument might be summarized like this: how should we space elements with margins in CSS? He notes that the gap pr...
02:46 pm GMT - Fri, April 10, 2020
CSS Tricks Tips for Writing Animation Code Efficiently
Ive been coding web animations and helping others do the same for years now. However, I have yet to see a concise list of tips focused on how to efficiently build animations, so here you go! I will be...
02:51 pm GMT - Thu, April 9, 2020
CSS Tricks CSS Foldable Display Polyfill
Foldable phones are starting to be a thing. Early days, for sure, but some are already shipping, and they definitely have web browsers on them. Stands to reason that, as web designers, we are going to...
02:44 pm GMT - Thu, April 9, 2020
CSS Tricks Create Diagonal Layouts Like its 2020
Nils Binder covers the ways:1. Use an SVG in the form of a triangle. This technique is nicely described by Erik Kennedy on CSS-Tricks.2. Hide part of your section using clip-path. Read Diago...
02:53 pm GMT - Wed, April 8, 2020
CSS Tricks Creating Scheduled Push Notifications
Scheduled is the key word there thats a fairly new thing! When a push notification is scheduled (i.e. Take your pill or Youve got a flight in 3 hours) that means it can be shown to the user even if t...
02:53 pm GMT - Wed, April 8, 2020
CSS Tricks The WebAIM MillionUpdated
This report made a big splash last year. It’s a large chunk of research that shows just how terribly the web does with accessibility. It’s been updated this year and (drumroll…) we g...
04:35 pm GMT - Tue, April 7, 2020
CSS Tricks Learn Eleventy From Scratch
The latest edition of Andy Bell’s Piccalilli landed in my inbox this morning with a sweet offer: preorder Andy’s course on learning Eleventy from scratch at a third of the price.Why the pl...
02:51 pm GMT - Tue, April 7, 2020
CSS Tricks How to Re-Create a Nifty Netflix Animation in CSS
The design for Netflix’s browse page has remained pretty similar for a few years now. One mainstay component is the preview slider that allows users to scroll through content and hover on items ...
02:51 pm GMT - Tue, April 7, 2020
CSS Tricks CSS Findings From The New Facebook Design
Ahmad Shadeed digs around the new Facebook’s front-end code. One that stood out to me:.element { inset: 4px 0; /* Which is equivalent to: top: 4px, bottom: 4px, left: 0, right: 0 */}Whaaat? Th...
09:22 pm GMT - Mon, April 6, 2020
CSS Tricks A Grid of Logos in Squares
Let’s build a literal grid of squares, and we’ll put the logos of some magazines centered inside each square. I imagine plenty of you have had to build a logo grid before. You can probably...
02:26 pm GMT - Mon, April 6, 2020
CSS Tricks Continuous Deployments for WordPress Using GitHub Actions
Continuous Integration (CI) workflows are considered a best practice these days. As in, you work with your version control system (Git), and as you do, CI is doing work for you like running tests, sen...
12:53 pm GMT - Sun, April 5, 2020
CSS Tricks CSS-Only Marquee Effect
You make sure the text is more than twice the width of the screen, then use negative translate animations to do the marquee movement. You’ll probably want to aria-hidden all but one of them if y...
09:54 pm GMT - Fri, April 3, 2020
CSS Tricks Some Typography Links
I just can’t stop bookmarking great links related to typography. I’m afraid I’m going to have to subject you, yet again, to a bunch of them all grouped up. So those of you that care ...
03:05 pm GMT - Fri, April 3, 2020
CSS Tricks Getting JavaScript to Talk to CSS and Sass
JavaScript and CSS have lived beside one another for upwards of 20 years. And yet its been remarkably tough to share data between them. There have been large attempts, sure. But, I have something simp...
03:05 pm GMT - Fri, April 3, 2020
CSS Tricks Googles Technical Writing Guide
It’s good! I’ve written up my advice (sprinkled with great advice from others), but this is way more straightforward nuts-and-bolts training on technical writing. It’s structured lik...
07:45 pm GMT - Thu, April 2, 2020
CSS Tricks Accessibility Links
Austin Gil has kicked off the first in a five-part series about “HTML Forms Right” and to starts with semantics. It’s talking to the “we build our front-ends with JavaScript...
07:45 pm GMT - Thu, April 2, 2020
CSS Tricks typespecimens.io
If youre looking for a new typeface for that side project of yours then heres a great website by John D. Jameson that collects a bunch of the latest type specimen websites. Everything is on display he...
02:50 pm GMT - Thu, April 2, 2020
CSS Tricks Why Do Some HTML Elements Become Deprecated?
The internet has been around for a long while, and over time weve changed the way we think about web design. Many old techniques and ways of doing things have gotten phased out as newer and better alt...
02:49 pm GMT - Thu, April 2, 2020
CSS Tricks Rethinking Code Comments
Justin Duke asks if treating code comments like footnotes could help us understand the code in a file better. In his mockup, all the comments are hidden by default and require a click to reveal:What a...
12:02 am GMT - Thu, April 2, 2020
CSS Tricks Web Performance Checklist
The other day, I realized that web performance is an enormous topic covering so very much from minimizing assets to using certain file formats, it can be an awful lot to keep in mind while building a...
10:25 pm GMT - Wed, April 1, 2020
CSS Tricks An Annotated Docker Config for Front-End Web Development
Andrew Welch sings the praises of using Docker containers for local dev environments:Here are the advantages of Docker for me: Each application has exactly the environment it needs to run, including ...
10:25 pm GMT - Wed, April 1, 2020
CSS Tricks Cloudinary Studio
I knew that Cloudinary worked with video as well as images but, the other day, I was curious if Cloudinary offered a video player embed just like other video hosts do (e.g. YouTube, Vimeo, etc). Like ...
02:46 pm GMT - Wed, April 1, 2020
CSS Tricks Performant Expandable Animations: Building Keyframes on the Fly
Animations have come a long way, continuously providing developers with better tools. CSS Animations, in particular, have defined the ground floor to solve the majority of uses cases. However, there a...
02:45 pm GMT - Wed, April 1, 2020
CSS Tricks Let a website be a worry stone
Ethan Marcotte just redesigned his website and wrote about how the process was a distraction from the difficult things that are going on right now. Adding new features to your blog or your portfolio, ...
09:09 pm GMT - Tue, March 31, 2020
CSS Tricks How to build a bad design system
I didnt realize this until it was far too late, but one of the biggest mistakes thats made on a design systems team is a common mismanagement issue: there are too many people in a meeting and they hav...
09:09 pm GMT - Tue, March 31, 2020
CSS Tricks Max Stoibers Strong Opinion About Margins
Going with that title instead of the classic developer clickbait version Max used. ;)We should ban margin from our components.Don’t use margin?! This thing I’ve been doing my entire career...
02:39 pm GMT - Tue, March 31, 2020
CSS Tricks APIs and Authentication on the Jamstack
The first A in the Jamstack stands for APIs and is a key contributor to what makes working with static sites so powerful. APIs give developers the freedom to offload complexity and provide avenues for...
02:38 pm GMT - Tue, March 31, 2020
CSS Tricks Wide Gamut Color in CSS with Display-P3
Heres something Id never heard of before: Display-P3 support in CSS Color Module Level 4 spec. This is a new color profile supported by certain displays and it introduces a much wider range of colors ...
12:35 am GMT - Tue, March 31, 2020
CSS Tricks RSS Stuff
Laura Kalbag wrote How to read RSS in 2020. This would be a nice place to send someone curious about RSS: what it is, what it’s for, and how you can start using it as a reader. I like this callo...