An Almost Ideal React Image Component

Yes, this is a React component, but regardless if you care about that part or not, the “ideal image component” part could be of interest. There is a lot to consider with how we put images on web pages these days. This deals with:

  • Placeholder space (and then flexible responsive styles after loading)
  • Low-quality placeholder images
  • Responsive images syntax (srcset)
  • Image formats (e.g. using WebP when you can)
  • Click-to-load on bad network connections
  • Better UX for loading errors,

The post An Almost Ideal React Image Component appeared first on CSS-Tricks.

Read more

10 Free & Premium Cryptocurrency WordPress Themes: Features to Look For

The demand for the professional cryptocurrency WordPress templates is on the rise. It is unsurprising as the sheer idea of decentralized currency (without a governmental or banking control) is really tempting to many of us worldwide. Although the concept of digital money may look tricky at first, it is gaining popularity impressively fast. So, if you also …
The post 10 Free & Premium Cryptocurrency WordPress Themes: Features to Look For appeared first on Torque.
Read more

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