Your Web News in One Place

Articles by CSS Tricks from July 2020

Help Webnuz

Referal links:

Sign up for GreenGeeks web hosting
< Return to CSS Tricks details.
10:49 pm GMT - Thu, July 30, 2020
CSS Tricks Spotting a Trend
There are tons of smokin’ hot websites out there, with an equal or greater number of talented designers and developers who make them. The web is awesome like that and encourages that sort of cre...
05:40 pm GMT - Thu, July 30, 2020
CSS Tricks SVG Title vs. HTML Title Attribute
You know the title attribute? I can do this:<div title="The Title"I'm a div with a `title`</divAnd now if I’m on a device with a mouse pointer and hover the cursor over that element, I g...
02:24 pm GMT - Thu, July 30, 2020
CSS Tricks Getting the Most Out of Variable Fonts on Google Fonts
I have spent the past several years working (alongside a bunch of super talented people) on a font family called Recursive Sans & Mono, and it just launched officially on Google Fonts!Wanna try it...
11:17 pm GMT - Wed, July 29, 2020
CSS Tricks Dark Ages of the Web
A very fun jaunt through the early days of front-end web development. They are open to pull requests, so submit one if you’re into this kind of fun chronicling of our weird history! That CSS3 Bu...
02:27 pm GMT - Wed, July 29, 2020
CSS Tricks style9: build-time CSS-in-JS
In April of last year, Facebook revealed its big new redesign. An ambitious project, it was a rebuild of a large site with a massive amount of users. To accomplish this, they used several technologies...
10:49 pm GMT - Tue, July 28, 2020
CSS Tricks A Bit on Web Component Libraries
A run of Web Components news crossed my desk recently so I thought I’d group it up here. To my mind, one of the best use cases for Web Components is pattern libraries. Instead of doing, say, ...
02:26 pm GMT - Tue, July 28, 2020
CSS Tricks Want to get better at code? Teach someone CSS.
A friend of mine recently asked me to teach her to code. She was an absolute beginner, having no idea what coding really involves. I decided to start where I started: HTML and CSS. Using CodePen, we s...
12:19 am GMT - Tue, July 28, 2020
CSS Tricks The GitHub Profile Trick
Monica Powell shared a really cool trick the other day:The profile README is created by creating a new repository thats the same name as your username. For example, my GitHub username is m0nica so I c...
09:47 pm GMT - Mon, July 27, 2020
CSS Tricks CSS Vocabulary
This is a neat interactive page by Ville V. Vanninen to reference the names of things in the CSS syntax. I feel like the easy ones to remember are “selector,” “property,” and &...
02:37 pm GMT - Mon, July 27, 2020
CSS Tricks Using Trello as a Super Simple CMS
Sometimes our sites need a little sprinkling of content management. Not always. Not a lot. But a bit. The CMS market is thriving with affordable, approachable products, so were not short of options. T...
02:36 pm GMT - Mon, July 27, 2020
CSS Tricks Bold on Hover Without the Layout Shift
When you change the font-weight of a font, the text will typically cause a bit of a layout shift. That’s because bold text is often larger and takes up more space. Sometimes that doesn’t m...
10:25 pm GMT - Fri, July 24, 2020
CSS Tricks Apple declined to implement 16 Web APIs in Safari due to privacy concerns
Why? Fingerprinting. Rather than these APIs being used for what they are meant for, they end up being used for gross ad tech. As in, “hey, we don’t know exactly who you are, but wait, thro...
02:07 pm GMT - Fri, July 24, 2020
CSS Tricks A Font-Like SVG Icon System for Vue
Managing a custom collection of icons in a Vue app can be challenging at times. An icon font is easy to use, but for customization, you have to rely on third-party font generators, and merge conflicts...
02:07 pm GMT - Fri, July 24, 2020
CSS Tricks Holy Albatross with Widths
Heydon’s Holy Albatross is a technique to have a row of elements break into a column of elements at a specific width. A specified parent width, not a screen width like a media query would have. ...
09:48 pm GMT - Thu, July 23, 2020
CSS Tricks WordPress.com Growth Summit
I’m speaking at The Official WordPress.com Growth Summit coming up in August. “Learn how to build and grow your site, from start to scale”, as they say. Lovely, t...
08:15 pm GMT - Thu, July 23, 2020
CSS Tricks Accordion Rows in CSS Grid
I’d bet grid-template-columns is used about 10 more than grid-template-rows, but maybe everyone has just been missing out. Eric Meyer chucks a bunch of row lines onto his main site layout grid l...
02:57 pm GMT - Thu, July 23, 2020
CSS Tricks Vue 3.0 has entered Release Candidate stage!
Vue is in the process of a complete overhaul that rebuilds the popular JavaScript framework from the ground up. This has been going on the last couple of years and, at long last, the API and implement...
02:57 pm GMT - Thu, July 23, 2020
CSS Tricks CMDZ for Git is Here
Version control with Git has become a “commodity” by now: virtually every software project today uses Git, and virtually every developer knows Git to some extent. This explains why I somet...
11:29 pm GMT - Wed, July 22, 2020
CSS Tricks Position Vertical Scrollbars on Opposite Side with CSS
Fair warning: I can’t say I recommend this in general because it breaks a very strong expectation of where scrollbars are, which are useful for a lots of folks, not to mention, a core accessibil...
07:39 pm GMT - Wed, July 22, 2020
CSS Tricks WordPress-Powered Landing Pages on a Totally Different Site via Cloudflare Workers
What if you have some content on one site and want to display that content on another site? We can do this in the browser no problem. We can fetch it, and plunk it onto the page. Ajax, right? Ugh. Now...
03:15 pm GMT - Wed, July 22, 2020
CSS Tricks Pausing a GIF with details/summary
Steve Faulkner has a clever idea here. You can show an (animated) GIF and overlay a pause/play button on top of it which is really a <details>/<summary> element. When toggled, a (non-...
02:50 pm GMT - Wed, July 22, 2020
CSS Tricks Reactive jQuery for Spaghetti-fied Legacy Codebases (or When You Cant Have Nice Things)
I can hear you crying out now: Why on Earth would you want to use jQuery when there are much better tools available? Madness! What sort of maniac are you? These are reasonable questions, and Ill answe...
12:23 am GMT - Wed, July 22, 2020
CSS Tricks What ya need there is a bit of templating
I had a fella write in to me the other day. He had some HTML, CSS, and JavaScript, and it just wasn’t behaving like he thought it ought to. The HTML had some placeholders in it and the JavaScrip...
10:19 pm GMT - Tue, July 21, 2020
CSS Tricks Using Flexbox and text ellipsis together
You can truncate a single line of text with an ellipsis (…) fairly easily with text-overflow and a few friends. But, as you might expect, that truncation happens at the end of the line of text. ...
02:47 pm GMT - Tue, July 21, 2020
CSS Tricks How to Make a Monthly Calendar With Real Data
Have you ever seen a calendar on a webpage and thought, how the heck did they did that? For something like that, it might be natural to reach for a plugin, or even an embedded Google Calendar, but its...
02:46 pm GMT - Tue, July 21, 2020
CSS Tricks marketstack: A Market Data API
(This is a sponsored post.)I like the apilayer company tagline: “Automate What Should Be Automated.” They have this thick suite of products that are all APIs with clear documentation. They...
09:08 pm GMT - Mon, July 20, 2020
CSS Tricks When do you use inline-block?
The inline-block value for display is a classic! It’s not new and browser support is certainly not something you need to worry about. I’m sure many of us reach for it intuitively. But let&...
09:08 pm GMT - Mon, July 20, 2020
CSS Tricks When do you use inline-block?
The inline-block value for display is a classic! It’s not new and browser support is certainly not something you need to worry about. I’m sure many of us reach for it intuitively. But let&...
09:08 pm GMT - Mon, July 20, 2020
CSS Tricks When do you use inline-block?
The inline-block value for display is a classic! It’s not new and browser support is certainly not something you need to worry about. I’m sure many of us reach for it intuitively. But let&...
09:08 pm GMT - Mon, July 20, 2020
CSS Tricks When do you use inline-block?
The inline-block value for display is a classic! It’s not new and browser support is certainly not something you need to worry about. I’m sure many of us reach for it intuitively. But let&...
08:33 pm GMT - Mon, July 20, 2020
CSS Tricks Levels of Fix
On the web, we have the opportunity to do work that fixes things for people. It’s fascinating to me how different the scope of those fixes can be.Consider the media query prefers-reduced-motion....
08:33 pm GMT - Mon, July 20, 2020
CSS Tricks Levels of Fix
On the web, we have the opportunity to do work that fixes things for people. It’s fascinating to me how different the scope of those fixes can be.Consider the media query prefers-reduced-motion....
08:33 pm GMT - Mon, July 20, 2020
CSS Tricks Levels of Fix
On the web, we have the opportunity to do work that fixes things for people. It’s fascinating to me how different the scope of those fixes can be.Consider the media query prefers-reduced-motion....
08:33 pm GMT - Mon, July 20, 2020
CSS Tricks Levels of Fix
On the web, we have the opportunity to do work that fixes things for people. It’s fascinating to me how different the scope of those fixes can be.Consider the media query prefers-reduced-motion....
02:44 pm GMT - Mon, July 20, 2020
CSS Tricks Creating a Gatsby Site with WordPress Data
In my previous article last week, I mentioned creating a partially ported WordPress-Gatsby site. This article is a continuation with a step-by-step walkthrough under the hood.Gatsby, a React-based fra...
10:16 pm GMT - Fri, July 17, 2020
CSS Tricks How to Italicize Text
HTML and CSS offer us the ability to italicize text. Im talking about text like this. Lets cover everything youll need to know.What is italic text and why would you italicize text?You italicize text m...
10:16 pm GMT - Fri, July 17, 2020
CSS Tricks How to Italicize Text
HTML and CSS offer us the ability to italicize text. Im talking about text like this. Lets cover everything youll need to know.What is italic text and why would you italicize text?You italicize text m...
07:42 pm GMT - Fri, July 17, 2020
CSS Tricks CSS Painting Order
Usually, when I see terms like “painting order” or “stacking context” my brain will start to shut off and my eyes will gloss over. Not that my brain doesn’t normally shut...
07:42 pm GMT - Fri, July 17, 2020
CSS Tricks CSS Painting Order
Usually, when I see terms like “painting order” or “stacking context” my brain will start to shut off and my eyes will gloss over. Not that my brain doesn’t normally shut...
06:03 pm GMT - Fri, July 17, 2020
CSS Tricks Develop, Preview, Test
Guillermo:I want to make the case that prioritizing end-to-end (E2E) testing for the critical parts of your app will reduce risk and give you the best return. Further, I’ll show how yo...
12:46 am GMT - Fri, July 17, 2020
CSS Tricks On dependency
Rob Weychert:But I cant host your site or even my own site. I didnt build the CMS. Other people made the hardware and software I use to generate and optimize images. Other people made the fonts. Other...
08:35 pm GMT - Thu, July 16, 2020
CSS Tricks Backdrop Filter effect with CSS
I love these little posts where some tricky-looking design is solved by a single line of CSS using a little-known property. In this case, the design is a frosted glass effect and the CSS property is b...
02:46 pm GMT - Thu, July 16, 2020
CSS Tricks Lazy Loading Images in Svelte
One easy way to improve the speed of a website is to only download images only when theyre needed, which would be when they enter the viewport. This lazy loading technique has been around a while and ...
02:44 pm GMT - Thu, July 16, 2020
CSS Tricks Irregular-shaped Links with Subgrid
Michelle Barker covers a situation where you need offset rectangles part of a clickable area. The tricky part is having just the rectangles be clickable. That rules out using some parent element and m...
11:37 pm GMT - Wed, July 15, 2020
CSS Tricks Tradeoffs and Shifting Complexity
This is a masterclass from Dave:After you hit the wall of unremovable complexity, any advances are a shell game, making tradeoffs that get passed down to the user … you get advances by shifting ...
07:09 pm GMT - Wed, July 15, 2020
CSS Tricks Making lil me
Cassie Evans made a lovely illustration of herself and then used Greensock to add a flourish of animations to polish it off. Cassie wrote a series of posts about how she did it:In this post we’l...
02:46 pm GMT - Wed, July 15, 2020
CSS Tricks Make Jamstack Slow? Challenge Accepted.
Jamstack is slowwwww. Thats not something you hear often, right? Especially, when one of the main selling points of Jamstack is performance. But yeah, its true that even a Jamstack site can suffer hit...
12:46 am GMT - Wed, July 15, 2020
CSS Tricks Netlify Does Cache Invalidation For You
This is one of my favorite Netlify features. Say you’re working on a site and you change as asset like a CSS, JavaScript, or image file. Ya know, like do our job. On Netlify, you don’t hav...
02:38 pm GMT - Tue, July 14, 2020
CSS Tricks Three CSS Alternatives to JavaScript Navigation
Hey quick! Youve gotta create the navigation for the site and you start working on the mobile behavior. What pattern do you choose? If youre like most folks, its probably the hamburger menu that, when...
02:37 pm GMT - Tue, July 14, 2020
CSS Tricks Open Prioritization
Like Kickstarter, but for Web Platform Features.That’s about the quickest way to sum up Open Prioritization from Igalia. Igalia is an independent company that works on browsers. They literally c...
10:12 pm GMT - Mon, July 13, 2020
CSS Tricks Running spot instances effectively with Amazon EKS
I know this is a little outside the normal scope of CSS-Tricks stuff, but I find the whole concept of spot instances fascinating. Here’s the gist from a very-non-expert (me). You can just buy an...
02:32 pm GMT - Mon, July 13, 2020
CSS Tricks My Long Journey to a Decoupled WordPress Gatsby Site
As a professional research biologist, my playground used to be science laboratories filled with microscopes, petri dishes, and biology tools. Curiosity leads many scientists on their journey to discov...
02:32 pm GMT - Mon, July 13, 2020
CSS Tricks Introducing Headless WordPress with Gatsby Cloud (Live Preview, Incremental Builds, and more!)
The Gatsby team shipped an update to its source plugin for WordPress, graduating it to a beta release. The new version brings a new set of features to Gatsby’s headless WordPress configuration, ...
01:24 pm GMT - Mon, July 13, 2020
CSS Tricks Lazy Loaded Prefill Embeds
Lemme sum this up:CodePen has Embedded Pens. Build a Pen on CodePen, embed it on any other site.We also offer Prefill Embeds, which remove that first step. With Prefill Embeds, the Pen doesn’t n...
02:54 pm GMT - Fri, July 10, 2020
CSS Tricks An Eleventy Starter with Tailwind CSS and Alpine.js
When I decided to try to base my current personal website on Eleventy, I didn’t want to reinvent the wheel: I tested all the Eleventy starters built with Tailwind CSS that I could find in Starte...
02:53 pm GMT - Fri, July 10, 2020
CSS Tricks We need more inclusive web performance metrics
Scott Jehl argues that performance metrics such as First Contentful Paint and Largest Contentful Paint dont really capture the full picture of everyones experience with websites:These metrics are ofte...
06:54 pm GMT - Thu, July 9, 2020
CSS Tricks Memorize Scroll Position Across Page Loads
Hakim El Hattab tweeted a really nice little UX enhancement for a static site that includes a scrollable sidebar of navigation. If you've got a static site with a scrollable sidebar, it really he...
02:52 pm GMT - Thu, July 9, 2020
CSS Tricks Building a Blog with Next.js
In this article, we will use Next.js to build a static blog framework with the design and structure inspired by Jekyll. I’ve always been a big fan of how Jekyll makes it easier for beginners to ...
02:50 pm GMT - Thu, July 9, 2020
CSS Tricks Frontity is React for WordPress
Some developers just prefer working in React. I don’t blame them really, because I like React too. Maybe that’s what they learned first. I’ve been using it long enough there is just ...
09:29 pm GMT - Wed, July 8, 2020
CSS Tricks A little bit of plain Javascript can do a lot
Julia Evans:I decided to implement almost all of the UI by just adding & removing CSS classes, and using CSS transitions if I want to animate a transition.An awful lot of the JavaScript ...
02:46 pm GMT - Wed, July 8, 2020
CSS Tricks How to Make a List Component with Emotion
Ive been doing a bit of refactoring this week at Sentry and I noticed that we didnt have a generic List component that we could use across projects and features. So, I started one, but heres the rub: ...
02:46 pm GMT - Wed, July 8, 2020
CSS Tricks How to delete all node_modules directories from your computer
Nice tip from Chris Ferdinandi:My node_modules directories contained 50mb of stuff on the small side, and over 200mb of files in some cases. Over a few dozen projects, that really adds up!Tw...
10:33 pm GMT - Tue, July 7, 2020
CSS Tricks Displaying the Current Step with CSS Counters
Say you have five buttons. Each button is a step. If you click on the fourth button, you’re on step 4 of 5, and you want to display that. This kind of counting and displaying could be hard-coded...
02:44 pm GMT - Tue, July 7, 2020
CSS Tricks WooCommerce on CSS-Tricks
I always get all excited when I accomplish something, but I get extra excited when I get it done and think, “well, that was easy.” As much as I enjoy fiddling with technology, I enjoy reap...
02:44 pm GMT - Tue, July 7, 2020
CSS Tricks Improving Chromiums browser compatibility in 2020
This is exactly what I love to hear from any browser vendor:When it comes to browser compatibility, there are still too many missing features and edge-case bugs. But it doesn’t have to be this w...
10:49 pm GMT - Mon, July 6, 2020
CSS Tricks Bootstrap 5
It’s always notable when the world biggest CSS framework goes up a major version (it’s in alpha now). It has dropped jQuery and IE, started using some CSS custom properties, gone fully cus...
02:52 pm GMT - Mon, July 6, 2020
CSS Tricks Building Serverless GraphQL API in Node with Express and Netlify
Ive always wanted to build an API, but was scared away by just how complicated things looked. Id read a lot of tutorials that start with first, install this library and this library and this library w...
02:52 pm GMT - Mon, July 6, 2020
CSS Tricks WordPress Contributors Seek Sponsorship for Improving Gutenberg Developer Docs
A couple of WordPress contributors are currently looking for folks to sponsor them to work on the documentation for the WordPress block editor (often referred to as “Gutenberg”) and this i...
02:29 pm GMT - Mon, July 6, 2020
CSS Tricks Posters! (for CSS Flexbox and CSS Grid)
Any time I chat with a fellow web person and CSS-Tricks comes up in conversation, there is a good chance they’ll say: oh yeah, that guide on CSS flexbox, I use that all the time! Indeed that pag...
10:29 pm GMT - Sun, July 5, 2020
CSS Tricks USA.css
Lots of fun with gradients from Bennet Feely: stars, stripes, banners, bursts… I love being able to use nice patterns with either no image requests at all, or very little SVG. And important remi...
11:06 pm GMT - Sat, July 4, 2020
CSS Tricks The Thirteenth Fourth
Well boy howdy. The 13th birthday of CSS-Tricks has rolled around. A proper teenager now, howabouthat? I always take the opportunity to do a bit of a state of the union address at this time, so let...
02:36 pm GMT - Fri, July 3, 2020
CSS Tricks Fluid Images in a Variable Proportion Layout
Creating fluid images when they stand alone in a layout is easy enough nowadays. However, with more sophisticated interfaces we often have to place images inside responsive elements, like this card:Fo...
02:35 pm GMT - Fri, July 3, 2020
CSS Tricks Settling down in a Jamstack world
One of the things I like about Jamstack is that it’s just a philosophy. It’s not particularly prescriptive about how you go about it. To me, the only real requirement is that it’s ba...
12:53 am GMT - Fri, July 3, 2020
CSS Tricks Some Performance Links
Just had a couple of good performance links burning a hole in my pocket, so blogging them like a good little blogger.Web Performance Recipes With Puppeteer Puppeteer is an Node library for spinning up...
12:53 am GMT - Fri, July 3, 2020
CSS Tricks Refreshing Sidebar for 2020
The new design for Sidebar is lovely. I like how it goes even deeper with the sticky elements than the last design. But even more notably, Sacha Greif has been posting five links per day to Sidebar si...
02:57 pm GMT - Thu, July 2, 2020
CSS Tricks When a Line Doesnt Break
We expect a line to break when the text on that line reaches the parent box boundaries. We see this every time we create a paragraph, just like this one. When the parent box doesnt have enough room fo...
08:11 pm GMT - Wed, July 1, 2020
CSS Tricks How-to guide for creating edge-to-edge color bars that work with a grid
Hard-stop gradients are one of my favorite CSS tricks. Here, Marcel Moreau combines that idea with CSS grid to solve an issue that’s otherwise a pain in the butt. Say you have like a 300px right...
02:47 pm GMT - Wed, July 1, 2020
CSS Tricks A Complete Guide to Dark Mode on the Web
Dark mode is defined as a color scheme that uses light-colored text and other UI elements on a dark-colored background. Dark mode, dark theme, black mode, night mode they all refer to and mean the sam...
11:59 pm GMT - Tue, June 30, 2020
CSS Tricks New in Chrome: CSS Overview
Heres a fancy new experimental feature in Chrome! Now, we can get an overview of the CSS used on a site, from how many colors there are to the number of unused declarations… even down to the tot...
11:58 pm GMT - Tue, June 30, 2020
CSS Tricks Global and Component Style Settings with CSS Variables
The title of this Sara Soueidan article speaks to me. I’m a big fan of the idea that some CSS is best applied globally, and some CSS is best applied scoped to a component. I’m less interes...
02:35 pm GMT - Tue, June 30, 2020
CSS Tricks Responsive Styling Using Attribute Selectors
One of the challenges we face when implementing class-based atomic styling is that it often depends on a specific breakpoint for context.<div class="span-12"</div<!-- we want this for smal...
02:34 pm GMT - Tue, June 30, 2020
CSS Tricks Five 5-minute Videos from Ethan on Design & Accessibility
Ethan:Ive been working with Aquent Gymnasium to produce a series of five short tutorial videos, which have been launching over the course of this past week. Since the last video just went li...