Skip to main content
CSS-Tricks
  • Articles
  • Videos
  • Almanac
  • Newsletter
  • Guides
  • Books
Search

Articles

7681 Articles
{
,

}
Direct link to the article Trailing Slashes on URLs: Contentious or Settled?
URL

Trailing Slashes on URLs: Contentious or Settled?

Direct Link

A fun deep dive from Zach. Do you have an opinion on which you should use?

1) https://website.com/foo/
2) https://websites.com/foo

The first option has a “trailing slash.” The second does not.

I’ve always preferred this thinking: you use a trailing …

Avatar of Chris Coyier
Shared by Chris Coyier on Feb 25, 2022
Direct link to the article When to Avoid the text-decoration Shorthand Property
text-decoration

When to Avoid the text-decoration Shorthand Property

In my recent article about CSS underline bugs in Chrome, I discussed text-decoration-thickness and text-underline-offset, two relatively new and widely-supported CSS properties that give us more control over the styling of underlines.

Let me demonstrate the usefulness of …

Avatar of Šime Vidas
Šime Vidas on Feb 25, 2022
Direct link to the article Manuel Matuzovic’s CSS Specificity Demo
specificity

Manuel Matuzovic’s CSS Specificity Demo

Direct Link

If you’re looking for a primer on CSS specificity, we’ve got that. And if you’re trying to get ahead of the game, you should be aware of CSS Cascade Layers as well.…

Avatar of Chris Coyier
Shared by Chris Coyier on Feb 25, 2022
Direct link to the article My white whale: A use case for will-change
will-change

My white whale: A use case for will-change

Direct Link

 Nic Chan:

[…] the will-change property landed in major browsers in August 2015, and I’ve been on the lookout for when to use it ever since. It might seem self-evident to apply it to commonly animated properties such

…
Avatar of Chris Coyier
Shared by Chris Coyier on Feb 24, 2022
Direct link to the article Explain the First 10 Lines of Twitter’s Source Code to Me
view source

Explain the First 10 Lines of Twitter’s Source Code to Me

For the past few weeks, I’ve been hiring for a senior full-stack JavaScript engineer at my rental furniture company, Pabio. Since we’re a remote team, we conduct our interviews on Zoom, and I’ve observed that some developers are not …

Avatar of Anand Chowdhary
Anand Chowdhary on Feb 24, 2022
Direct link to the article Superior Image Optimization: An Ideal Solution Using Gatsby & ImageEngine

Superior Image Optimization: An Ideal Solution Using Gatsby & ImageEngine

In recent years, the Jamstack methodology for building websites has become increasingly popular. Performance, scalable, and secure, it’s easy to see why it’s becoming an attractive way to build websites for developers.

GatsbyJS is a static site generator platform. It’s …

❥ Sponsored (Written by ImageEngine)
Direct link to the article CSS Database Queries? Sure We Can!
database

CSS Database Queries? Sure We Can!

Kinda silly sounding, isn’t it? CSS database queries. But, hey, CSS is capable of talking to other languages in the sense that it can set the values of things that they can read. Plus, CSS can request other files, and …

Avatar of Chris Coyier
Chris Coyier on Feb 23, 2022 (Updated on Feb 24, 2022)
Direct link to the article 5 Accessibility Quick Wins You Can Implement Today
accessibility

5 Accessibility Quick Wins You Can Implement Today

Let’s face it: building an AA or AAA-accessible product can be quite daunting. Luckily, having an accessible product isn’t all-or-nothing. Even seemingly small improvements can have nice quality of life benefits for many people.

In that spirit, here are five …

Avatar of Daniel Yuschick
Daniel Yuschick on Feb 23, 2022
Direct link to the article Before I go: When it comes to complaining about web browsers
advice

Before I go: When it comes to complaining about web browsers

Direct Link

That’s a damn one-two punch from Dave. He goes for the ultimate clickbait title¹, then follows up with a pile of epic advice for us all. If you want web browsers to get better, listen up:

Complaining on

…
Avatar of Chris Coyier
Shared by Chris Coyier on Feb 22, 2022
Direct link to the article Reliably Send an HTTP Request as a User Leaves a Page
fetch ping

Reliably Send an HTTP Request as a User Leaves a Page

On several occasions, I’ve needed to send off an HTTP request with some data to log when a user does something like navigate to a different page or submit a form. Consider this contrived example of sending some information to …

Avatar of Alex MacArthur
Alex MacArthur on Feb 22, 2022
Direct link to the article A Complete Guide to CSS Cascade Layers
cascade layers

A Complete Guide to CSS Cascade Layers

This is your complete guide to CSS cascade layers, a CSS feature that allows us to define explicit contained layers of specificity, so that we have full control over which styles take priority in a project without relying on specificity …

Avatar of Miriam Suzanne
Miriam Suzanne on Feb 21, 2022 (Updated on Feb 22, 2022)
  • 1
  • 2
  • 3
  • ...
  • 699
  • Older
Our Learning Partner
Frontend Masters logo
Frontend Masters

Need front-end development training?

Frontend Masters is the best place to get it. They have courses on all the most important front-end technologies, from React to CSS, from Vue to D3, and beyond with Node.js and Full Stack.

CSS-Tricks is created by Chris and a team of swell people.

Keep up to date on web dev

with our hand-crafted weekly newsletter

Tech
  • WordPress (CMS)
  • Jetpack (Search, Backup)
  • WooCommerce (eCommerce)
  • Local (Development)
Hosting
  • Flywheel
Family
  • CodePen
  • ShopTalk Show
Minisites
  • The Power of Serverless
  • Upcoming Conferences
  • Coding Fonts
Contact
  • Email
  • Guest Writing
Follow
  • Twitter
  • Instagram
  • YouTube
  • CodePen
  • iTunes
  • RSS
Back to Top