Your Web News in One Place

Articles by CSS Tricks from July 2019

Help Webnuz

Referal links:

Sign up for GreenGeeks web hosting
< Return to CSS Tricks details.
10:58 pm GMT - Tue, July 30, 2019
CSS Tricks How much specificity do @rules have, like @keyframes and @media?
I got this question the other day. My first thought is: weird question! Specificity is about selectors, and at-rules are not selectors, so... irrelevant?To prove that, we can use the same selector ins...
10:57 pm GMT - Tue, July 30, 2019
CSS Tricks Intrinsically Responsive CSS Grid with minmax() and min()
The most famous line of code to have come out of CSS grid so far is:grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr));Without any media queries, that will set up a grid container that has a...
02:32 pm GMT - Tue, July 30, 2019
CSS Tricks Creating Dynamic Routes in a Nuxt Application
In this post, well be using an ecommerce store demo I built and deployed to Netlify to show how we can make dynamic routes for incoming data. Its a fairly common use-case: you get data from an API, an...
02:31 pm GMT - Tue, July 30, 2019
CSS Tricks The Simplest Way to Load CSS Asynchronously
Scott Jehl:One of the most impactful things we can do to improve page performance and resilience is to load CSS in a way that does not delay page rendering. Thats because by default, browsers will loa...
02:12 pm GMT - Tue, July 30, 2019
CSS Tricks Run useEffect Only Once
React has a built-in hook called useEffect. Hooks are used in function components. The Class component comparison to useEffect are the methods componentDidMount, componentDidUpdate, and componentWillU...
11:18 pm GMT - Mon, July 29, 2019
CSS Tricks Lessons Learned from a Year of Testing the Web Platform
Mike Pennisi:The web-platform-tests project is a massive suite of tests (over one million in total) which verify that software (mostly web browsers) correctly implement web technologies. Its as import...
02:32 pm GMT - Mon, July 29, 2019
CSS Tricks Getting design system customization just right
I had a little rant in me a few months ago about design systems: "Who Are Design Systems For?" My main point was that there are so many public and open source ones out there that choosing one can feel...
02:32 pm GMT - Mon, July 29, 2019
CSS Tricks The Guardian digital design system
Heres a fascinating look at The Guardians design system with a step-by-step breakdown of what's gone into it and what options are available to designers and developers. It shows us how the team treats...
03:02 pm GMT - Fri, July 26, 2019
CSS Tricks Telling the Story of Graphic Design
Let me just frame this for you: we're going to take a piece of production UI from a Sketch file, break it down into pieces of information and then build it up into a story we tell our friends. Our fri...
03:02 pm GMT - Fri, July 26, 2019
CSS Tricks Datalist is for suggesting values without enforcing values
Have you ever had a form that needed to accept a short, arbitrary bit of text? Like a name or whatever. That's exactly what <input type="text"> is for. There are lots of different input types ...
03:12 am GMT - Fri, July 26, 2019
CSS Tricks Weekly news: Truncating muti-line text, calc() in custom property values, Contextual Alternates
In this week's roundup, WebKit's method for truncating multi-line text gets some love, a note on calculations using custom properties, and a new OpenType feature that prevents typographic logjams.The ...
09:49 pm GMT - Thu, July 25, 2019
CSS Tricks My Favorite Netlify Features
👋 Hey folks! Silvestar pitched this post to us because he is genuinely enthusiastic about JAMstack and all of the opportunities it opens up for front-end development. We wanted to call that ou...
07:00 pm GMT - Thu, July 25, 2019
CSS Tricks Responsive Iframes
Say you wanted to put the CSS-Tricks website in an <iframe>. You'd do that like this:<iframe src="https://css-tricks.com"></iframe>Without any other styling, you'd get a rectan...
03:03 pm GMT - Thu, July 25, 2019
CSS Tricks How Google PageSpeed Works: Improve Your Score and Search Engine Ranking
In this article, we uncover how PageSpeed calculates its critical speed score.Its no secret that speed has become a crucial factor in increasing revenue and lowering abandonment rates. Now that Google...
03:02 pm GMT - Thu, July 25, 2019
CSS Tricks What I Like About Vue
Dave Rupert digs into some of his favorite Vue features and one particular issue that he has with React: Ive come to realize one thing I dont particularly like about React is jumping into a file, read...
06:04 pm GMT - Wed, July 24, 2019
CSS Tricks Zdog
David DeSandro has loads of super cool JavaScript libraries he's created over the years. His latest is Zdog, a "round, flat, designer-friendly pseudo-3D engine for canvas & SVG." It's only been a...
06:04 pm GMT - Wed, July 24, 2019
CSS Tricks Dont comma-separate :focus-within if you need deep browser support
I really like :focus-within. It's a super useful selector that allows you to essentially select a parent element when any of its children are in focus. Say you wanted to reveal some extra stuff when a...
08:37 pm GMT - Tue, July 23, 2019
CSS Tricks Unsuck It
Julia Carrie Wong and Matthew Cantor's How to speak Silicon Valley: 53 essential tech-bro terms explained was pretty hilarious. A little something in there to offend everyone. Speaking of kinda douche...
02:39 pm GMT - Tue, July 23, 2019
CSS Tricks Pseudo Code
Yonatan Doron wrote a post on Medium not long ago called "Art of Code Why you should write more Pseudo Code." Love that title, as a fan of pseudo code myself. That is, writing "code" that describes s...
02:39 pm GMT - Tue, July 23, 2019
CSS Tricks Zoom, CORS, and the Web
It's sorta sad by funny that that big Zoom vulnerability thing was ultimately related to web technology and not really the app itself. There is this idea of custom protocols or "URL schemes." So, like...
09:39 pm GMT - Mon, July 22, 2019
CSS Tricks CSS :not() with Multiple Classes
Say you want to select an element when it doesn't have a certain class. That's what the :not() selector is for. body:not(.home) { }But what if there are multiple classes you want to avoid?There are n...
03:07 pm GMT - Mon, July 22, 2019
CSS Tricks A Beginners Journey to Launching a Website
In September 2018, I was just a few months into my journey of learning web development. As I'm sure is the case with many new developers, it was a big task for me to learn not only the basic skills re...
03:06 pm GMT - Mon, July 22, 2019
CSS Tricks CSS Animation Libraries
There are an awful lot of libraries that want to help you animate things on the web. These aren't really libraries that help you with the syntax or the technology of animations, but rather are grab-an...
08:54 pm GMT - Fri, July 19, 2019
CSS Tricks How I Created a Code Beautifier in Two Days
I recently drew up a wireframe for a code beautifier. The next day, I decided to turn it into a real tool. The whole project took less than two days to complete.I'd been thinking about building a new ...
03:09 pm GMT - Fri, July 19, 2019
CSS Tricks What the Web Needs Now (and how ARTIFACT is here for it)
I recently had the pleasure of joining Dave Rupert, Chris Coyier, and Chris Ferdinandi on the Shop Talk Show to talk about the upcoming ARTIFACT Conference (Austin, TX on Sept. 30 Oct. 1, 2019). ARTI...
09:43 pm GMT - Thu, July 18, 2019
CSS Tricks Weekly Platform News: CSS ::marker pseudo-element, pre-rendering web components, adding Webmention to your site
In this week's roundup: datepickers are giving keyboard users headaches, a new web component compiler that helps fight FOUC, we finally get our hands on styling list item markers, and four steps to ge...
03:15 pm GMT - Thu, July 18, 2019
CSS Tricks Using GraphQL Playground with Gatsby
Im assuming most of you have already heard about Gatsby, and at least loosely know that its basically a static site generator for React sites. It generally runs like this:Data Sources Pull data from ...
03:09 pm GMT - Thu, July 18, 2019
CSS Tricks Get Peak WordPress Performance with Jetpack
The irony of web performance is that the average page weight of a site continues to go up year after year, despite us being more aware of the problem and having more tools at our disposal to fight it ...
09:53 pm GMT - Wed, July 17, 2019
CSS Tricks Multi-Line Truncation with Pure CSS
Truncating a single line of text if is fairly straightforward. Truncating multiple lines is a bit harder. Using just CSS (no JavaScript or server-side dancing) is nice for the simplicity. It's gotten ...
03:22 pm GMT - Wed, July 17, 2019
CSS Tricks Improving Video Accessibility with WebVTT
"The power of the Web is in its universality. Access by everyone regardless of disability is an essential aspect."- Tim Berners-LeeAccessibility is an important element of web development, and with th...
03:20 pm GMT - Wed, July 17, 2019
CSS Tricks Micro Frontends
One random day not long ago, I started hearing joke after joke about "micro frontends" — sort of how I first learned about Toast. I didn't understand the source until asking around, which uncove...
03:16 pm GMT - Tue, July 16, 2019
CSS Tricks A Peek at New Methods Coming to Promises
Promises are one of the most celebrated features introduced to JavaScript. Having a native asynchronous artifact baked right into the language has opened up a new era, changing not only how we write c...
03:09 pm GMT - Tue, July 16, 2019
CSS Tricks Finally A Post on Finally in Promises
When does finally fire in a JavaScript promise? This is a question I was asked in a recent workshop and I thought Id write up a little post to clear up any confusion.The answer is, to quote Snape:...a...
03:07 pm GMT - Tue, July 16, 2019
CSS Tricks So, you think youve got project management nailed down
(This is a sponsored post.)Who needs a project manager? You're an organized person who can keep track of your own work, right?Wrong.Well, wrong if you're part of a team. The thing about being self-org...
09:17 pm GMT - Mon, July 15, 2019
CSS Tricks Managing Multiple Backgrounds with Custom Properties
One cool thing about CSS custom properties is that they can be a part of a value. Let's say you're using multiple backgrounds to pull off a a design. Each background will have its own color, image, re...
02:52 pm GMT - Mon, July 15, 2019
CSS Tricks Build a Chat App Using React Hooks in 100 Lines of Code
Weve looked at React Hooks before, around here at CSS-Tricks. I have an article that introduces them as well that illustrates how to use them to create components through functions. Both articles are ...
10:31 pm GMT - Fri, July 12, 2019
CSS Tricks Position Sticky and Table Headers
You can't position: sticky; a <thead>. Nor a <tr>. But you can sticky a <th>, which means you can make sticky headers inside a regular ol' <table>. This is tricky stuff...
03:09 pm GMT - Fri, July 12, 2019
CSS Tricks Color Inputs: A Deep Dive into Cross-Browser Differences
In this article, we'll be taking a look at the structure inside <input type='color'> elements, browser inconsistencies, why they look a certain way in a certain browser, and how to dig into it...
05:47 pm GMT - Thu, July 11, 2019
CSS Tricks Weekly Platform News: HTML Inspection in Search Console, Global Scope of Scripts, Babel env Adds defaults Query
In this week's look around the world of web platform news, Google Search Console makes it easier to view crawled markup, we learn that custom properties aren't computing hogs, variables defined at the...
03:21 pm GMT - Thu, July 11, 2019
CSS Tricks Protecting Vue Routes with Navigation Guards
Authentication is a necessary part of every web application. It is a handy means by which we can personalize experiences and load content specific to a user — like a logged in state. It can also...
03:19 pm GMT - Thu, July 11, 2019
CSS Tricks Frontend Masters: The New, Complete Intro to React Course Now with Hooks!
(This is a sponsored post.)Much more than an intro, youll build a real-world app with the latest features in React including 🎣 hooks, effects, context, and portals.We also have a complete Reac...
11:06 pm GMT - Wed, July 10, 2019
CSS Tricks The Fight Against Layout Jank
A web page isn't locked in stone just because it has rendered visually. Media assets, like images, can come in and cause the layout to shift based on their size, which typically isn't known in fluid l...
07:30 pm GMT - Wed, July 10, 2019
CSS Tricks Types or Tests: Why Not Both?
Every now and then, a debate flares up about the value of typed JavaScript. "Just write more tests!" yell some opponents. "Replace unit tests with types!" scream others. Both are right in some ways, a...
10:05 am GMT - Wed, July 10, 2019
CSS Tricks Introducing Netlify Analytics
You work a while on a side project. You think it's pretty cool! You decide to release it into the world. And then it goes well. Or it doesnt go well. Wait, is that right? You forgot to add analytics &...
11:40 pm GMT - Tue, July 9, 2019
CSS Tricks Developing a robust font loading strategy for CSS-Tricks
Zach Leatherman worked closely with Chris to figure out the font loading strategy for this very website you're reading. Zach walks us through the design in this write-up and shares techniques that can...
09:39 pm GMT - Tue, July 9, 2019
CSS Tricks IndieWeb and Webmentions
The IndieWeb is a thing! They've got a conference coming up and everything. The New Yorker is even writing about it:Proponents of the IndieWeb offer a fairly straightforward analysis of our current so...
02:53 pm GMT - Tue, July 9, 2019
CSS Tricks Animating with Clip-Path
clip-path is one of those CSS properties we generally know is there but might not reach for often for whatever reason. Its a little intimidating in the sense that it feels like math class because it r...
08:45 pm GMT - Mon, July 8, 2019
CSS Tricks The Many Ways to Include CSS in JavaScript Applications
Welcome to an incredibly controversial topic in the land of front-end development! Im sure that a majority of you reading this have encountered your fair share of #hotdrama surrounding how CSS should ...
08:45 pm GMT - Mon, July 8, 2019
CSS Tricks A Little Reminder That Pseudo Elements are Children, Kinda.
Here's a container with some child elements:<div class="container"> <div>item</div> <div>item</div> <div>item</div></div>If I do:.con...
03:48 pm GMT - Fri, July 5, 2019
CSS Tricks Five Methods for Five-Star Ratings
In the world of likes and social statistics, reviews are very important method for leaving feedback. Users often like to know the opinions of others before deciding on items to purchase themselves, or...
03:19 pm GMT - Fri, July 5, 2019
CSS Tricks PSA: Linking to a Code of Conduct Template is Not the Same as Having a Code of Conduct
Did you know we have a site that lists all upcoming conferences related to front-end web design and development? We do! If you're looking to go to one, check it out. If you're running one, feel free t...
07:09 pm GMT - Thu, July 4, 2019
CSS Tricks The Twelfth Fourth
CSS-Tricks is 12 years old! Firmly into that Early Adolescence stage, I'd say ;) As we do each year, let's reflect upon the past year. I'd better have something to say, right? Otherwise, John Prine wo...
03:50 pm GMT - Thu, July 4, 2019
CSS Tricks CSS-Tricks on Flywheel
I first heard of Flywheel through their product Local, which is a native app for working on WordPress sites. If you ask around for what people use for that kind of work, you'll get all sorts of answer...
08:48 pm GMT - Wed, July 3, 2019
CSS Tricks Menus with Dynamic Hit Areas
Flyout menus! The second you need to implement a menu that uses a hover event to display more menu items, you're in tricky territory. For one, they should work with clicks and taps, too. Without that,...
02:37 pm GMT - Wed, July 3, 2019
CSS Tricks Hey, lets create a functional calendar app with the JAMstack
Hey, let's create a functional calendar app with the JAMstackIve always wondered how dynamic scheduling worked so I decided to do extensive research, learn new things, and write about the technical pa...
02:36 pm GMT - Wed, July 3, 2019
CSS Tricks Haunted: Hooks for Web Components
I was just chatting with Dave and he told me about Haunted. It's hooks, but for native web components! Pretty cool. I think the existence of stuff like this makes using web components more and more pa...
10:41 pm GMT - Tue, July 2, 2019
CSS Tricks Graphical User Interfaces for Git
Git is command-line-driven software, but that doesn't mean you have to use the command line to make it work. There are lots of options! Some of the deepest programmer nerds I know prefer to use GUIs f...
10:40 pm GMT - Tue, July 2, 2019
CSS Tricks Toast
One day, all the sudden, I started hearing jokes about toast. I had no idea what the context was. I assumed some friends just got started telling toast jokes, which isn't rare by any means. But it tur...
02:19 pm GMT - Tue, July 2, 2019
CSS Tricks Restricting a (pseudo) element to its parents border-box
Have you ever wanted to ensure that nothing of a (pseudo) element gets displayed outside its parent's border-box? In case you're having trouble picturing what that looks like, let's say we wanted to g...
02:16 pm GMT - Mon, July 1, 2019
CSS Tricks Tips for rolling your own lazy loading
You may have heard (or even issued the call) that we can just use lazy loading! when looking for a way to slim down a particularly heavy web page.Lazy loading is a popular technique for gradually requ...
02:15 pm GMT - Mon, July 1, 2019
CSS Tricks Making width and flexible items play nice together
The short answer: flex-shrink and flex-basis are probably what youre lookin for.The long answerLets say you want to align an image and some text next to each other with like this: Now let's say you re...