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. | Continue reading


@css-tricks.com | 4 years ago

Consistent Backends and UX: What Can Go Wrong?

Article Series Why should you care?What can go wrong?What are the barriers to adoption? (Coming soon)How do new algorithms help? (Coming soon) In the | Continue reading


@css-tricks.com | 4 years ago

Words to Avoid in Educational Writing

I'm no English major, but as a writer and consumer of loads of educational (mostly tech) writing, I've come to notice a number of words and phrases that | Continue reading


@css-tricks.com | 4 years ago

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 | Continue reading


@css-tricks.com | 4 years ago

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 | Continue reading


@css-tricks.com | 4 years ago

Block Links Are a Pain (and Maybe Just a Bad Idea)

As we noted in our complete guide, you can put an link around whatever chunks of HTML you like. Let's call that a "block link." Like you | Continue reading


@css-tricks.com | 4 years ago

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 | Continue reading


@css-tricks.com | 4 years ago

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 | Continue reading


@css-tricks.com | 4 years ago

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 | Continue reading


@css-tricks.com | 4 years ago

Geoff’s 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 | Continue reading


@css-tricks.com | 4 years ago

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 | Continue reading


@css-tricks.com | 4 years ago

What to Use Instead of Number Inputs

You might reach for | Continue reading


@css-tricks.com | 4 years ago

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 | Continue reading


@css-tricks.com | 4 years ago

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 | Continue reading


@css-tricks.com | 4 years ago

CSS Tricks forum has closed down

Continue reading


@css-tricks.com | 4 years ago

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. | Continue reading


@css-tricks.com | 4 years ago

The Slideout Footer

A fascinating new site called The Markup just launched. Tagline: Big Tech Is Watching You. We’re Watching Big Tech. Great work from Upstatement. The | Continue reading


@css-tricks.com | 4 years ago

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 | Continue reading


@css-tricks.com | 4 years ago

How We Created a Static Site That Generates Tartan Patterns in SVG

Tartan is a patterned cloth that’s typically associated with Scotland, particularly their fashionable kilts. On tartanify.com, we gathered over 5,000 | Continue reading


@css-tricks.com | 4 years ago

4 Ways to Animate the Color of a Text Link on Hover

Let’s 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 | Continue reading


@css-tricks.com | 4 years ago

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 | Continue reading


@css-tricks.com | 4 years ago

What I Like About Craft CMS

Looking at the CMS scene today, there are upwards of 150 options to choose from — and that’s not including whatever home-grown custom alternatives people | Continue reading


@css-tricks.com | 4 years ago

Considerations for Creating a Card Component

Here's a Card component in React: const Card = props => { return(

{props.title}

{props.content}

| Continue reading


@css-tricks.com | 4 years ago

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 | Continue reading


@css-tricks.com | 4 years ago

A Follow-Up to PHP Templating

Not long ago, I posted about PHP templating in just PHP (which is basically HEREDOC syntax). I'm literally using that technique for some super basic | Continue reading


@css-tricks.com | 4 years ago

Quick Reminder That Details/Summary Is the Easiest Way Ever to Make an Accordion

Gosh bless the element. Toss some content inside it and you have an accessible expand-for-more interaction with just about zero work. See the Pen Simple | Continue reading


@css-tricks.com | 4 years ago

How to Customize the WooCommerce Cart Page on a WordPress Site

A standard e-commerce site has a few common pages. There are product pages, shop pages that list products, and let’s not forget pages for the user | Continue reading


@css-tricks.com | 4 years ago

Where to Learn WordPress Theme Development

Over a decade ago, I did a little three-part video series on Designing for WordPress. Then I did other series with the same spirit, like videocasting the | Continue reading


@css-tricks.com | 4 years ago

Why is CSS Frustrating?

Here’s a great thread by Kevin Powell that's making the rounds. He believes so many folks see CSS as a frustrating and annoying language: | Continue reading


@css-tricks.com | 4 years ago

Animated Matryoshka Dolls in CSS

Here’s a fun one. How might we create a set of those cool Matryoshka dolls where they nest inside one another... but in CSS? I toyed with this idea in my | Continue reading


@css-tricks.com | 4 years ago

Let’s Say You Were Going to Write a Blog Post About Dark Mode

This is not that blog post. I'm saying let's say you were. This is not a knock any other blog posts out there about Dark Mode. There are lots of good | Continue reading


@css-tricks.com | 4 years ago

Weaving a Line Through Text in CSS

Earlier this year, I came across this demo by Florin Pop, which makes a line go either over or under the letters of a single line heading. I thought this | Continue reading


@css-tricks.com | 4 years ago

Instant GraphQL Backend with Fine-grained Security Using FaunaDB

GraphQL is becoming popular and developers are constantly looking for frameworks that make it easy to set up a fast, secure and scalable GraphQL API. In | Continue reading


@css-tricks.com | 4 years ago

Responsive Grid Magazine Layout in Just 20 Lines of CSS

I was recently working on a modern take of the blogroll. The idea was to offer readers a selection of latest posts from those blogs in a magazine-style | Continue reading


@css-tricks.com | 4 years ago

Recreating the CodePen Gutenberg Embed Block for Sanity.io

Learn how to create a custom CodePen block with a preview for Sanity Studio, inspired by Chris Coyier’s implementation for Wordpress’ Gutenberg editor. | Continue reading


@css-tricks.com | 4 years ago

Pages for Likes

I posted about parsing an RSS feed in JavaScript the other day. I also posted about my RSS setup talking about how Feedbin is at the heart of it. Dave | Continue reading


@css-tricks.com | 4 years ago

Gutenberging

It's been over a year since the big WordPress launch of Gutenberg, the new editor. It seems to me most of the controversy around it has died down. There | Continue reading


@css-tricks.com | 4 years ago

wpaudit.site

A big checklist of things you could/should be doing to make your website the best it can be. 80% of which is a good idea for any website, not just a | Continue reading


@css-tricks.com | 4 years ago

Fixed Headers and Jump Links? The Solution is scroll-margin-top

The problem: you click a jump link like Jump which links to something like

Header

. | Continue reading


@css-tricks.com | 4 years ago

A Guide to Console Commands

The developer’s debugging console has been available in one form or another in web browsers for many years. Starting out as a means for errors to be | Continue reading


@css-tricks.com | 4 years ago

Animate SVG Path Changes in CSS

Every once in a while I'm motivated to attempt to draw some shapes with , the all-powerful drawing syntax of SVG. I only understand a fragment | Continue reading


@css-tricks.com | 4 years ago

Add Background Colors to SVGs Using the “rect” Element

The advantages of using SVGs in web development are well known. SVGs are small in size, can be made quite accessible, are scalable while maintaining their | Continue reading


@css-tricks.com | 4 years ago

Footnote Characters

They are special superset numbers that are sometimes perfect for footnotes. Here they are: ¹ ² ³ ⁴ ⁵ ⁶ ⁷ ⁸ ⁹ I generally prefer to superscript the number | Continue reading


@css-tricks.com | 4 years ago

Understanding Web Accessibility Color Contrast Guidelines and Ratios

What should you do when you get a complaint about the color contrast in your web design? It might seem perfectly fine to you because you’re able to read | Continue reading


@css-tricks.com | 4 years ago

Centering a div That Maintains Aspect-Ratio When There’s Body Margin

Andrew Welch had a little CSS challenge the other day to make an ordinary div: • centered vertically + horizontally• scales to fit the viewport w/ a | Continue reading


@css-tricks.com | 4 years ago

How to Build Vue Components in a WordPress Theme

The inline-template directive allows us to build rich Vue components as a progressive enhancement over existing WordPress markup. | Continue reading


@css-tricks.com | 4 years ago

Web Component for a Code Block

We'll get to that, but first, a long-winded introduction. I'm still not in a confident place knowing a good time to use native web components. The | Continue reading


@css-tricks.com | 4 years ago

A Complete Guide to Data Attributes

Everything you ever wanted to know about data attributes in HTML, CSS, and JavaScript. | Continue reading


@css-tricks.com | 4 years ago