POSTing an Indeterminate Checkbox Value

There is a such thing as an indeterminate checkbox value. It’s a checkbox (<input type="checkbox">) that isn’t checked. Nor is it not checked. It’s indeterminate.

We can even select a checkbox in that state and style it with CSS!

Some curious points though:

  1. It’s only possible to set via JavaScript. There is no HTML attribute or value for it.
  2. It doesn’t POST (or GET or whatever else) or have a value. It’s like being unchecked.

So, …

The post POSTing an Indeterminate Checkbox Value appeared first on CSS-Tricks.

Read more

The Way We Talk About CSS

There’s a ton of very quotable stuff from Rachel Andrew’s latest post all about CSS and how we talk about it in the community:

CSS has been seen as this fragile language that we stumble around, trying things out and seeing what works. In particular for layout, rather than using the system as specified, we have so often exploited things about the language in order to achieve far more complex layouts than it was ever designed for. We had to, …

The post The Way We Talk About CSS appeared first on CSS-Tricks.

Read more

Why Every Business Needs a WordPress Site

The Internet gives companies and individuals access to people they would not reach otherwise, even letting them reach out to people in different states and countries around the world. It also gives a sense of authority, whether you are an individual who is trying to build a portfolio or offering a service online or a …
The post Why Every Business Needs a WordPress Site appeared first on Torque.
Read more

Styling the Gutenberg Columns Block

WordPress 5.0 is quickly approaching, and the new Gutenberg editor is coming with it. There’s been a lot of discussion in the WordPress community over what exactly that means for users, designers, and developers. And while Gutenberg is sure to improve the writing experience, it can cause a bit of a headache for developers who now need to ensure their plugins and themes are updated and compatible.

One of the clearest ways you can make sure your theme is …

The post Styling the Gutenberg Columns Block appeared first on CSS-Tricks.

Read more

25+ Best Monogram Fonts

Creating a monogram is a popular design practice for logos, badges, signage, insignias, and signatures (it actually dates back to the early 350BC!). If you’re working on a monogram design, this collection of monogram fonts and typography is a helpful starting point! Many brands, products, and businesses still use monograms to craft unique logos that […]
Read more

3 Ways to Make the Most Out of a HubSpot/WordPress Integration

If you’ve made the decision to boost your marketing efforts by adding HubSpot to your WordPress site, you have taken the first step to improving your organization’s marketing capabilities. After you’ve installed the plugin, which adds HubSpot tracking code to your WordPress site and creates subscribers from non-HubSpot forms on your site, it’s time to …
The post 3 Ways to Make the Most Out of a HubSpot/WordPress Integration appeared first on Torque.
Read more

Best Wireframe & Prototype Tools for setting up a Website

Regardless of if you are an experienced project manager or a developer who just started out, prototyping remains the core of every project you take on. Prototyping is the procedure of developing a preliminary version of the final web product in order to see how everything will look before going live. Creating a prototype is …
The post Best Wireframe & Prototype Tools for setting up a Website appeared first on Torque.
Read more

Valid CSS Content

There is a content property in CSS that’s made to use in tandem with the ::before and ::after pseudo elements. It injects content into the element.

Here’s an example:

data-done="✅"
class="email">
chriscoyier@gmail.com


.email::before {
content: attr(data-done) " Email: "; /* This gets inserted before the email address */
}

The property generally takes anything you drop in there. However, there are some invalid values it won’t accept. I heard from someone recently who was confused by this, so …

The post Valid CSS Content appeared first on CSS-Tricks.

Read more