Your Web News in One Place

Articles by CSS Tricks from August 2019

Help Webnuz

Referal links:

Sign up for GreenGeeks web hosting
< Return to CSS Tricks details.
02:31 pm GMT - Fri, August 30, 2019
CSS Tricks Styling Links with Real Underlines
Before we come to how to style underlines, we should answer the question: should we underline?In graphic design, underlines are generally seen as unsophisticated. There are nicer ways to draw emphasis...
02:30 pm GMT - Fri, August 30, 2019
CSS Tricks Working with Attributes on DOM Elements
The DOM is just a little weird about some things, and the way you deal with attributes is no exception. There are a number of ways to deal with the attributes on elements. By attributes, I mean things...
11:32 pm GMT - Thu, August 29, 2019
CSS Tricks The Best (GraphQL) API is One You Write
Listen, I am no GraphQL expert but I do enjoy working with it. The way it exposes data to me as a front-end developer is pretty cool. It's like a menu of available data and I can ask for whatever I wa...
02:12 pm GMT - Thu, August 29, 2019
CSS Tricks Maskable Icons: Android Adaptive Icons for Your PWA
There is a new web feature called maskable icons that is coming soon to Firefox Preview and other web browsers. This new icon format will let your PWAs have their own adaptive icons on Android.The pos...
02:12 pm GMT - Thu, August 29, 2019
CSS Tricks A Glassy (and Classy) Text Effect
The landing page for Apple Arcade has a cool effect where some "white" text has a sort of translucent effect. You can see some of the color of the background behind it through the text. It's not like ...
09:31 pm GMT - Wed, August 28, 2019
CSS Tricks Nested Gradients with background-clip
I can't say I use background-clip all that often. I'd wager it's hardly ever used in day-to-day CSS work. But I was reminded of it in a post by Stefan Judis, which consistently was itself a learning-r...
02:05 pm GMT - Wed, August 28, 2019
CSS Tricks Creating a Maintainable Icon System with Sass
One of my favorite ways of adding icons to a site is by including them as data URL background images to pseudo-elements (e.g. ::after) in my CSS. This technique offers several advantages:They don't re...
02:05 pm GMT - Wed, August 28, 2019
CSS Tricks Can you rotate the cursor in CSS?
Kinda! There is no simple or standard way to do it, but it's possible. You can change the cursor to different built-in native versions with CSS with the cursor property, but that doesn't help much her...
02:44 pm GMT - Tue, August 27, 2019
CSS Tricks Going Buildless
I'm in a long distance relationship. That means Im on a plane to England every few weeks, and every time I'm on that plane, I think about how nice it would be to read some Reddit posts. What I could d...
02:43 pm GMT - Tue, August 27, 2019
CSS Tricks More Flexible Online Stores WooCommerce and Gutenberg Blocks
Blocks have become an indispensable component for managing content in WordPress since the Gutenberg editor was officially released earlier this year. Not only does WordPress include some nifty blocks ...
03:12 pm GMT - Mon, August 26, 2019
CSS Tricks Reusable Popovers to Add a Little Pop
A popover is a transient view that shows up on top of a content on the screen when a user clicks on a control button or within a defined area. For example, clicking on an info icon on a specific list ...
03:36 pm GMT - Fri, August 23, 2019
CSS Tricks Jeremy Keith Building the Web
I really enjoyed this interview with Jeremy Keith on the state of the web, how things have changed in recent years and why hes a mix of optimistic and nervous for the future.One thing that caught my a...
02:35 pm GMT - Fri, August 23, 2019
CSS Tricks Multiplayer Tic Tac Toe with GraphQL
GraphQL is a query language for APIs that is very empowering for front-end developers. As the GraphQL site explains it, you describe your data, ask for what you want, and get predictable results.If yo...
11:13 pm GMT - Thu, August 22, 2019
CSS Tricks Weekly Platform News: Improving UX on Slow Connections, a Tip for Writing Alt Text and a Polyfill for the HTML loading attribute
In this week's roundup, how to determine a slow connection, what we should put into alt text for images, and a new polyfill for the HTML loading attribute, plus more.Detecting users on slow connection...
04:30 pm GMT - Thu, August 22, 2019
CSS Tricks Advice for Technical Writing
In advance of a recent podcast with the incredible technical writer and Smashing Magazine editor-in-chief Rachel Andrew, I gathered up a bunch of thoughts and references on the subject of technical wr...
02:18 pm GMT - Thu, August 22, 2019
CSS Tricks Navbar Nudging on @keyframers
I got to be the featured guest over on The Keyframers the other day. We looked at a Dribbble shot by Bjrgvin Ptur Sigurjnsson and then slowly built it, taking some purposeful detours along the way to ...
02:05 pm GMT - Wed, August 21, 2019
CSS Tricks Using requestAnimationFrame with React Hooks
Animating with requestAnimationFrame should be easy, but if you havent read Reacts documentation thoroughly then you will probably run into a few things that might cause you a headache. Here are three...
02:04 pm GMT - Wed, August 21, 2019
CSS Tricks Other Ways to SPAs
That rhymed lolz.I mentioned on a podcast the other day that I sorta think WordPress should ship with Turbolinks. It's a rather simple premise:Build a server-rendered site.Turbolinks intercepts clicks...
09:51 pm GMT - Tue, August 20, 2019
CSS Tricks Getting Netlify Large Media Going
I just did this the other day so I figured I'd blog it up. There is a thing called Git Large File Storage (Git LFS). Here's the entire point of it: it keeps large files out of your repo directly. Say ...
02:41 pm GMT - Tue, August 20, 2019
CSS Tricks Lets Build a JAMstack E-Commerce Store with Netlify Functions
A lot of people are confused about what JAMstack is. The acronym stands for JavaScript, APIs, and Markup, but truly, JAMstack doesnt have to include all three. What defines JAMstack is that its served...
02:41 pm GMT - Tue, August 20, 2019
CSS Tricks Lazy load embedded YouTube videos
This is a very clever idea via Arthur Corenzan. Rather than use the default YouTube embed, which adds a crapload of resources to a page whether the user plays the video or not, use the little tiny pla...
01:05 am GMT - Tue, August 20, 2019
CSS Tricks Using rel=preconnect to establish network connections early and increase performance
Milica Mihajlija: Adding rel=preconnect to a <link> informs the browser that your page intends to establish a connection to another domain, and that you'd like the process to start as soon as ...
02:34 pm GMT - Mon, August 19, 2019
CSS Tricks Bounce Element Around Viewport in CSS
Let's say you were gonna bounce an element all around a screen, sorta like an old school screensaver or Pong or something. You'd probably be tracking the X location of the element, increasing or decre...
02:33 pm GMT - Mon, August 19, 2019
CSS Tricks Can you view print stylesheets applied directly in the browser?
Yep.Let's take a look at how to do it in different browsers. Although note the date of this blog post. This stuff tends to change over time, so if anything here is wrong, let us know and we can update...
02:56 pm GMT - Fri, August 16, 2019
CSS Tricks Draggin and Droppin in React
The React ecosystem offers us a lot of libraries that all are focused on the interaction of drag and drop. We have react-dnd, react-beautiful-dnd, react-drag-n-drop and many more, but some of them req...
02:51 pm GMT - Fri, August 16, 2019
CSS Tricks Accessibility and web performance are not features, theyre the baseline
This week Ive been brooding about web performance and accessibility. It all began when Ethan Marcotte made a lot of great notes about the accessibility issues that are common with AMP:In the recording...
09:27 pm GMT - Thu, August 15, 2019
CSS Tricks Weekly Platform News: HTML Loading Attribute, the Main ARIA Specifications, and Moving from iFrame to Shadow DOM
In this week's roundup of platform news, Chrome introduces a new attribute for loading, accessibility specifications for web developers, and the BBC moves visualizations to the Shadow DOM.Chrome ships...
02:47 pm GMT - Thu, August 15, 2019
CSS Tricks The Making of an Animated Favicon
Its the first thing your eyes look for when youre switching tabs.Thats one way of explaining what a favicon is. The tab area is a much more precious screen real-estate than what most assume. If done r...
02:20 pm GMT - Thu, August 15, 2019
CSS Tricks Front Conference in Zrich
(This is a sponsored post.)I'm so excited to be heading to Zrich, Switzerland for Front Conference (Love that name and URL!). I've never been to Switzerland before, so I'm excited about that, but of c...
02:08 pm GMT - Wed, August 14, 2019
CSS Tricks Staggered CSS Transitions
Let's say you wanted to move an element on :hover for a fun visual effect. @media (hover: hover) { .list--item { transition: 0.1s; transform: translateY(10px); } .list--item:hover, .list--it...
02:08 pm GMT - Wed, August 14, 2019
CSS Tricks Contextual Utility Classes for Color with Custom Properties
In CSS, we have the ability to access currentColor which is tremendously useful. Sadly, we do not have access to anything like currentBackgroundColor, and the color-mod() function is still a ways away...
11:00 pm GMT - Tue, August 13, 2019
CSS Tricks The Differing Perspectives on CSS-in-JS
Some people outright hate the idea of CSS-in-JS. Just that name is offensive. Hard no. Styling doesn't belong in CSS, it belongs in CSS, a thing that already exists and that browsers are optimized to ...
02:32 pm GMT - Tue, August 13, 2019
CSS Tricks All the New ES2019 Tips and Tricks
The ECMAScript standard has been updated yet again with the addition of new features in ES2019. Now officially available in node, Chrome, Firefox, and Safari you can also use Babel to compile these fe...
10:50 pm GMT - Mon, August 12, 2019
CSS Tricks Site Monetization with Coil (and Removing Ads for Supporters)
I've tried a handful of websites based on "tip with micropayments" in the past. They come and go. That's fine. From a publisher perspective, it's low-commitment. I've never earned a ton, but it was ty...
02:30 pm GMT - Mon, August 12, 2019
CSS Tricks In Search of a Stack That Monitors the Quality and Complexity of CSS
Many developers write about how to maintain a CSS codebase, yet not a lot of them write about how they measure the quality of that codebase. Sure, we have excellent linters like StyleLint and CSSLint,...
09:56 pm GMT - Fri, August 9, 2019
CSS Tricks Moving Text on a Curved Path
There was a fun article in The New York Times the other day describing the fancy way Elizabeth Warren and her staff let people take a selfie with Warren. But... the pictures aren't actually selfies be...
02:42 pm GMT - Fri, August 9, 2019
CSS Tricks Building a Full-Stack Serverless Application with Cloudflare Workers
One of my favorite developments in software development has been the advent of serverless. As a developer who has a tendency to get bogged down in the details of deployment and DevOps, it's refreshing...
11:12 pm GMT - Thu, August 8, 2019
CSS Tricks Weekly Platform News: CSS font-style: oblique, webhin browser extension, CSS Modules V1
In this week's roundup, variable fonts get oblique, a new browser extension for linting, and the very first version of CSS Modules.Use font-style: oblique on variable fontsSome popular variable fonts ...
11:12 pm GMT - Thu, August 8, 2019
CSS Tricks Weekly Platform News: CSS font-style: oblique, webhint browser extension, CSS Modules V1
In this week's roundup, variable fonts get oblique, a new browser extension for linting, and the very first version of CSS Modules.Use font-style: oblique on variable fontsSome popular variable fonts ...
02:25 pm GMT - Thu, August 8, 2019
CSS Tricks Design Principles for Developers: Processes and CSS Tips for Better Web Design
It is technically true that anyone can cook. But theres a difference between actually knowing how to prepare a delicious meal and hoping for the best as you throw a few ingredients in a pot. Just like...
02:22 pm GMT - Thu, August 8, 2019
CSS Tricks Get the Best Domain Name for your New Website
(This is a sponsored post.)If you're on CSS-Tricks, we can probably bet that you're in the process of building a really cool website. You've spent your time creating content, applying appropriate UX d...
02:38 pm GMT - Wed, August 7, 2019
CSS Tricks Using Immer for React State Management
We make use of state to keep track of application data. States change as users interact with an application. When this happens, we need to update the state that is displayed to the user, and we do thi...
02:05 pm GMT - Wed, August 7, 2019
CSS Tricks Quick Gulp Cache Busting
You should for sure be setting far-out cache headers on your assets like CSS and JavaScript (and images and fonts and whatever else). That tells the browser "hang on to this file basically forever." T...
08:27 pm GMT - Tue, August 6, 2019
CSS Tricks Lets Give Grunt Tasks the Marie Kondo Organization Treatment
We live in an era of webpack and npm scripts. Good or bad, they took the lead for bundling and task running, along with bits of Rollup, JSPM and Gulp. But let's face it. Some of your older projects ar...
02:28 pm GMT - Tue, August 6, 2019
CSS Tricks SSCCE
You know what a "reduced test case" is, right? We've talked about it here. I imagine the concept is useful in many walks of life, but in the world of front-end development, you can think of it like:A ...
02:25 pm GMT - Tue, August 6, 2019
CSS Tricks Using Your Domain with a Netlify-Hosted Site
Netlify has their own docs for Custom Domains, so if you're looking for horse's mouth technical docs on this stuff, that should be treated as the source of truth. But I'd like to take a crack at it fr...
04:36 am GMT - Tue, August 6, 2019
CSS Tricks Let Mavo Shine in Building Interactive Web Applications
As you could guess from the title, this tutorial is dedicated to Mavo: a new, approachable way to create complex, reactive, persistent web applications just by writing HTML and CSS, without a single l...
02:50 pm GMT - Mon, August 5, 2019
CSS Tricks Can you nest @media and @support queries?
Yes, you can, and it doesn't really matter in what order. A CSS preprocessor is not required. It works in regular CSS.This works:@supports(--a: b) { @media (min-width: 1px) { body { backgroun...
02:50 pm GMT - Mon, August 5, 2019
CSS Tricks The Real Dark Web
Heres a wonderful reminder from Charlie Owen that everyone in the web design industry isnt using the latest and greatest technology. And thats okay! Charlie writes:Most web developers are working on v...
06:51 pm GMT - Fri, August 2, 2019
CSS Tricks Branching Out from the Great Divide
I like the term Front-End Developer. It's encapsulates the nature of your job if your concerns are:Building UIs for web browsersThe spectrum of devices and platforms those web browsers run onThe peopl...
02:13 pm GMT - Fri, August 2, 2019
CSS Tricks Using Netlify Forms and Netlify Functions to Build an Email Sign-Up Widget
Building and maintaining your own website is a great idea. Not only do you own your platform, but you get to experiment with web technologies along the way. Recently, I dug into a concept called serve...
09:07 pm GMT - Thu, August 1, 2019
CSS Tricks Weekly Platform News: Preventing Image Loads with the Picture Element, the Web We Want, Svg Styles Are Not Scoped
In this week's week roundup of browser news, a trick for loading images conditionally using the picture element, your chance to tell bowser vendors about the web you want, and the styles applied to in...
02:27 pm GMT - Thu, August 1, 2019
CSS Tricks Making a Realistic Glass Effect with SVG
Im in love with SVG. Sure, the code can look dense and difficult at first, but youll see the beauty in the results when you get to know it. The bonus is that those results are in code, so it can be ho...
02:23 pm GMT - Thu, August 1, 2019
CSS Tricks Register Now for An Event Apart 2019 in Chicago
(This is a sponsored post.)An Event Apart juuuuust wrapped up its Washington D.C. event yesterday. We hope we got to see you at the event but if not, perhaps we'll see you at the next one happening Au...
11:03 pm GMT - Wed, July 31, 2019
CSS Tricks Fetching Data in React using React Async
Youre probably used to fetching data in React using axios or fetch. The usual method of handling data fetching is to:Make the API call.Update state using the response if all goes as planned.Or, in cas...
02:26 pm GMT - Wed, July 31, 2019
CSS Tricks Bringing CSS Grid to WordPress Layouts
December 6th, 2018 was a special date for WordPress: it marked the release of version 5.0 of the software that, to this day, powers more than one-third of the web. In the past, people working on the p...
02:16 pm GMT - Wed, July 31, 2019
CSS Tricks A More Accessible Portals Demo
The point of the <portal> element (behind a flag in Chrome Canary) is that you can preload another whole page (like <iframe>), but then have APIs to animate it to the current page. So ...