DRY State Switching With CSS Variables: Fallbacks and Invalid Values

This is the second post in a two-part series that looks into the way CSS variables can be used to make the code for complex layouts and interactions less difficult to write and a lot easier to maintain. The first installment walks through various use cases where this technique applies. This post covers the use of fallbacks and invalid values to extend the technique to non-numeric values.

The strategy of using CSS Variables to drive the switching of layouts and …

The post DRY State Switching With CSS Variables: Fallbacks and Invalid Values appeared first on CSS-Tricks.

Read more

CSS Selectors are Conditional Statements

.foo {

}

Programmatically, is:

if (element has a class name of "foo") {

}

Descendent selectors are && logic and commas are ||. It just gets more complicated from there, with things like combinators and pseudo selectors. Just look at all the ways styles can cascade.

Jeremy Keith:

If you find you can’t select something in the CSS, that’s a sign that you probably need to add another class name to the HTML. The complexity is confined to …

The post CSS Selectors are Conditional Statements appeared first on CSS-Tricks.

Read more

A Visual, Intuitive Approach to Project Management

(This is a sponsored post.)

You know how valuable project management is for teams of any size. Whether you’re a small shop or full-blown agency, your clients and projects depend on tracked deliverables, solid communication, and a clear breakdown of the work that’s needed.

You may have a love/hate relationship with whatever project management platform you’re using or have used in the past. It’s common for a platform to be missing that one feature you really need that would …

The post A Visual, Intuitive Approach to Project Management appeared first on CSS-Tricks.

Read more

40+ Best Condensed & Narrow Fonts of 2019

Contrary to popular belief, condensed and narrow fonts don’t make your text cramped or crowded. You just have to know the appropriate time and place to use the font. Condensed fonts are widely used these days for headlines and portraying bold messages, and when deployed in the right place, they can give stunning impact! It […]
Read more

The Software We Pay For

We did a Web Developer Economics series a few years ago, where we looked at the various costs of being a web developer:

  1. Web Developer Economics: One-Off Software Costs
  2. Web Developer Economics: Hardware Costs
  3. Web Developer Economics: Monthly Service Costs
  4. Web Developer Economics: The Wrapup

I’m sure some of that software and hardware has changed since then, but the spirit is the same. It costs money to have the things you need to do this job.

I just wrote a …

The post The Software We Pay For appeared first on CSS-Tricks.

Read more

Torque Toons: WCUS 2018

Heading to WordCamp US in Nashville this weekend? Be sure to stop by the WP Engine booth to pick up a copy of our Torque Toons coloring book. Featuring some of our favorite WordPress toons of the past year.
The post Torque Toons: WCUS 2018 appeared first on Torque.
Read more

10 Reasons WordPress is the Best Platform for Your Business Website

It doesn’t matter what business you decide to start or you already have; the website is its main representation in front of the audience. You know you need it, and you know it has to be great. This brings us to a question: how can you make the website project easier to develop, cheaper, and …
The post 10 Reasons WordPress is the Best Platform for Your Business Website appeared first on Torque.
Read more

DRY Switching with CSS Variables: The Difference of One Declaration

This is the first post of a two-part series that looks into the way CSS variables can be used to make the code for complex layouts and interactions less difficult to write and a lot easier to maintain. This first installment walks through various use cases where this technique applies. The second post (coming tomorrow!) will cover the use of fallbacks and invalid values to extend the technique to non-numeric values.

What if I told you a single …

The post DRY Switching with CSS Variables: The Difference of One Declaration appeared first on CSS-Tricks.

Read more

The All Powerful Front-End Developer

I posted a video of this talk some months back, but it was nearly an hour and a half long. Here’s an updated version that I gave at JAMstack_conf that’s only 30 minutes:

The gist is that the front-end stack is wildly powerful these days. Our front-end skillset can be expanded to give us power to do back-end-ish things and talk with APIs that allow us to build entire products in a way we haven’t quite been able to before.…

The post The All Powerful Front-End Developer appeared first on CSS-Tricks.

Read more