Quick Reminder that Details/Summary is the Easiest Way Ever to Make an Accordion

Gosh bless the <details> element. Toss some content inside it and you have an accessible expand-for-more interaction with just about zero work.

See the Pen Simple details. by Chris Coyier (@chriscoyier) on CodePen.

Toss a <summary> in there to customize what the expander text says.

See the Pen Multiple Details/Summary by Chris Coyier (@chriscoyier) on CodePen.

Works great for FAQs.

There is really no limit to how you can style them. If you don’t …

The post Quick Reminder that Details/Summary is the Easiest Way Ever to Make an Accordion appeared first on CSS-Tricks.

Read more

React’s New Context API Explained

In this video tutorial, Wes Bos looks into the new context API and the problem that it’s trying to solve:

React 16.3 has a new Context API which makes accessing data and functions anywhere in your application a snap. If you ever find yourself passing data down via props 4-5 levels deep, context might be what you are looking for.

Don’t forget about Neal Fennimore’s recent post on putting things into context. It covers the concept in great detail …

The post React’s New Context API Explained appeared first on CSS-Tricks.

Read more

The 5 Best Related Posts Plugins For WordPress To Engage Your Visitors

You probably spend a ton of time and effort trying to get more visitors to your WordPress site. But despite all that hard work, a good chunk of those visitors bounce away, perhaps never to return. That’s why, beyond simply getting visitors to your site, you need to do everything possible to keep them engaged …
The post The 5 Best Related Posts Plugins For WordPress To Engage Your Visitors appeared first on Torque.
Read more

6 Unique Notebooks for Designers

Some of the best ideas start with a pencil and paper. That’s why it’s a good idea to always have a sketchpad or notebook nearby to record those ideas when inspiration strikes. How you use those concepts and sketches can determine what kind of notebook is best for you. (I actually have several go-to notebook […]
Read more

On Paid Newsletters: An Interview With Adam Roberts of SitePoint’s Versioning

You don’t often think of email as something you pay to get. If anything, most people would pay to get less of it. Of course, there are always emails you like to get and opt into on purpose. We have a newsletter right here on CSS-Tricks that we really try to make worth reading. It’s free, like the vast majority of email newsletters. We hope it helps a bit with engagement and we make it worth doing financially by showing …

The post On Paid Newsletters: An Interview With Adam Roberts of SitePoint’s Versioning appeared first on CSS-Tricks.

Read more

Doc Pop’s News Drop: Are Developers Responsible When a Plugin Breaks a Site?

Doc’s WordPress News Drop is a weekly report on the most pressing WordPress news. When the news drops, I will pick it up and deliver it right to you. There’s a great conversation on r/Wordpress (lowercasing is their theirs) about what happens when a plugin update breaks a clients site. Is it the developers job …
The post Doc Pop’s News Drop: Are Developers Responsible When a Plugin Breaks a Site? appeared first on Torque.
Read more

Compressive Images Revisited

Tim Kadlec returns to the topic of how to make images on the web as performant as possible and looks at the technique called “Compressive Images” which is now not recommended for a bunch of reasons. Tim summarizes his point here:

By now the trade-off is pretty clear. Compressive images give us a reduced file size, but it greatly increases the memory footprint. Thanks to the standards that have been developed around responsive images, it’s a trade-off we no longer …

The post Compressive Images Revisited appeared first on CSS-Tricks.

Read more

The Facebook Algorithm Change 2018: What it Means for Your Marketing

We are in for yet another Facebook algorithm change. When Mark Zuckerberg announced that the platform would start prioritizing news feed content differently, it didn’t go down too well with marketers. Especially since he explicitly stated that “you’ll see less public content like posts from businesses, brands, and media” in favor of “meaningful conversations.” What …
The post The Facebook Algorithm Change 2018: What it Means for Your Marketing appeared first on Torque.
Read more

20+ Best iPad Pro Mockups

There’s no better device than the iPad Pro to showcase your design with a touch of professionalism. This collection includes our picks of the absolute best free and premium iPad Pro mockups, all in one place. Ever since its release, many creatives and professionals have fallen in love with the iPad Pro. A larger screen, […]
Read more