Grid Level 2 and Subgrid

I find the concept of subgrid a little hard to wrap my mind around.

I do understand the idea that we want to use nested semantic markup as we like and have elements participate in one grid so we don’t have to flatten our markup just for layout reasons. But that is largely handled by display: contents;.

Rachel Andrew explains it in a way that finally clicked for me:

I have an item spanning three column tracks of the …

The post Grid Level 2 and Subgrid appeared first on CSS-Tricks.

Read more

Decorating lines of text with box-decoration-break

An institution’s motto, an artist’s intro, a company’s tagline, a community’s principle, a service’s greeting… all of them have one thing in common: they’re one brief paragraph displayed on a website’s home page — or at least the about page!

It’s rare that just one word or one line of text welcomes you to a website. So, let’s look at some interesting ways we could style the lines of a paragraph.

To see how things currently are, let’s try giving …

The post Decorating lines of text with box-decoration-break appeared first on CSS-Tricks.

Read more

VS Code Can Do That?

Clever microsite from Burke Holland and Sarah Drasner that highlights some of VS Code’s coolest features. All fifteen of them are pretty darn cool. Here’s a few other compelling features I’ve seen people use/love:

The post VS Code Can Do That? appeared first on CSS-Tricks.

Read more

How to Translate Your WordPress Website Using the Weglot Translate Plugin

Translating your WordPress website into other languages is a smart way to reach a wider audience and increase your traffic. If your site is only available in a single language, you could be losing out on a lot of potential leads and conversions. Fortunately, you don’t need to speak multiple languages to translate your site …
The post How to Translate Your WordPress Website Using the Weglot Translate Plugin appeared first on Torque.
Read more

Design Trend: Dark & Moody Designs

Good design can really get you in the mood. Today, we’ve got a collection of dark and moody website designs that will help inspire you to create a distinct atmosphere in your design work. While most dark collections have a bit of a “downer” vibe, not all of these designs have that feel (although color […]
Read more

Microsites for Case Studies

A lot of y’all have personal sites. Personal sites with portfolios. Or you work for or own an agency where showing off the work you do is arguably even more important. Often the portfolio area of a site is the most fretted and hard to pull off. Do you link to the live projects? Screenshots? How many? How much do you say? How much of the process do people care about?

I’m afraid I don’t have all the answers for …

The post Microsites for Case Studies appeared first on CSS-Tricks.

Read more

CSS Environment Variables

We were all introduced to the env() function in CSS when all that drama about “The Notch” and the iPhone X was going down. The way that Apple landed on helping us move content away from those “unsafe” areas was to provide us essentially hard-coded variables to use:

padding:
env(safe-area-inset-top)
env(safe-area-inset-right)
env(safe-area-inset-bottom)
env(safe-area-inset-left);

Uh ok! Weird! Now, nine months later, an “Unofficial Proposal Draft” for env() has landed. This is how specs work, as I understand it. Sometimes browser vendors …

The post CSS Environment Variables appeared first on CSS-Tricks.

Read more

Instagram Insights to Enhance Your Web Design Acceptance and Reach

Instagram is admired worldwide as being synonymous with online imagery. It was a fresh new concept in social networking when it was introduced, and it also changed the way businesses approach the internet, and in turn their target audience. This innovative image-based social network platform has shared many valuable lessons regarding how companies need to …
The post Instagram Insights to Enhance Your Web Design Acceptance and Reach appeared first on Torque.
Read more