Using Custom Fonts With SVG in an Image Tag

When we produce a PNG image, we use an <img> tag or a CSS background, and that’s about it. It is dead simple and guaranteed to work.

PNG is way simpler to use in HTML than SVG

Unfortunately, the same cannot be said for SVG, despite its many advantages. Although you’re spoiled for choices when using SVG in HTML, it really boils down to inline, <object> and <img>, all with serious gotchas and trade-offs.

Problems with inline SVG…

The post Using Custom Fonts With SVG in an Image Tag appeared first on CSS-Tricks.

Read more

What is SVG good for?

Y’all probably wouldn’t be surprised if I told you it’s pretty awesome for icons, and icon systems. SVG icon systems can, and perhaps should be quite easy. I’m a fan of just inlining those suckers, particularly when they are pretty simple.

But what else?

Logos is a classic example! A lot of people dip their toes in this way.

You don’t have to inline the SVG if you don’t want. It could be an <img> or background-image as well.…

The post What is SVG good for? appeared first on CSS-Tricks.

Read more

UTC is Enough for Everyone, Right?

A good candidate for the Blog Post of the Year from Zach Holman. I think Eric Portis’ “w descriptors and sizes: Under the hood” is up there too, but perhaps even nerdier. Ooooh, also Frank Chimero’s “The Good Room” is up there. But I digress.

Zach’s article is as educational as it is funny.

But yeah, this UTC initialism doesn’t make any sense. Let’s dig into this a little more.

So you’ve got a bunch of scientist types around …

The post UTC is Enough for Everyone, Right? appeared first on CSS-Tricks.

Read more

Centering: The Newest Coolest Way vs. The Oldest Coolest Way

This isn’t a comprehensive guide to centering things. We have that!

This is just a little observation about old and new. One of the trickier things related to centering in CSS is when you need to center both vertically and horizontally and you don’t know the width or height of what you are centering. Vertical centering being the extra tricky of the two.

Believe it or not, there was a way to do that even in IE 8. The trick …

The post Centering: The Newest Coolest Way vs. The Oldest Coolest Way appeared first on CSS-Tricks.

Read more

How to Create a Color Palette Without Stressing Out

Picking the perfect color palette can be a little nerve-wracking. It’s something you’ll be committed to for some time, so you’ll want to get it right! Today we’re looking at how to create a color palette, with plenty of tips and advice. There are a few things that designers who don’t sweat about color always […]
Read more

Monday: The Ultimate Team Management Tool

Almost every team, from the smallest group to the largest company, is looking for an efficient way to manage projects and tasks in a way that everyone can understand. Finding the right platform to use as a team management tool can be tough, but monday can help. The tool is intuitive while helping you centralize […]
Read more

Don’t just copy the @font-face out of Google Fonts URLs

I don’t think this is an epidemic or anything, but I’ve seen it done a few times and even advocated for. This is what I mean…

You go to Google Fonts and pick a font like Open Sans, and it gives you either a <link> or an @import with a URL there in which to ready this font for usage on your site.

You can take a peek in there and see what it returns…

It’s just some @font-face declarations, …

The post Don’t just copy the @font-face out of Google Fonts URLs appeared first on CSS-Tricks.

Read more

The Four Big Ways Jetpack Helps with Image Performance

We’ve been working with Jetpack around here as a sponsor. It’s a great match because as someone with a bunch of self-hosted WordPress sites, Jetpack is one of those no-brainer plugins for me. Jetpack can do a ton of good things for any site in a variety of very different ways. Here’s one way to think about it: it brings the power of WordPress’ own massive servers to you.

For now, let’s just focus on one angle of what …

The post The Four Big Ways Jetpack Helps with Image Performance appeared first on CSS-Tricks.

Read more

How to Improve Organic CTR (Click-through Rate) in WordPress

Search engines remain one of the most important traffic sources for websites. Learning to improve organic CTR (click-through rate) is crucial for taking advantage of them. When it comes to SEO, many website owners simply focus on ranking. They think that as long as they make it to the first page of Google, traffic will …
The post How to Improve Organic CTR (Click-through Rate) in WordPress appeared first on Torque.
Read more