Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Image spriting in HTML emails?

I've done a bit of Googling and found no guidelines for doing image spriting in HTML emails. So I have the following questions:

  1. Is it possible?
  2. Is it recommended? Are there benefits? Disadvantages?
like image 587
Jay Avatar asked Aug 04 '12 00:08

Jay


People also ask

What is image Spriting?

An image sprite is a collection of images put into a single image. A web page with many images can take a long time to load and generates multiple server requests. Using image sprites will reduce the number of server requests and save bandwidth.

Can I use PNG in HTML email?

While most of these formats are used for specific purposes and applications, the common 3 formats that are predominantly used in images in HTML emails are JPEG, GIF and PNG.

How do I use an image as a sprite tag?

You create a defined area with a <a> with display:block; or <div> and use overflow hidden; to hide overflow and position:relative; . Then you place your <img> image sprite inside absolutely positioned, which is possible since you positioned the parent. Then use :hover on the image to change position.

Are image sprites still used?

In recent years, however, they've made a comeback. Sprite is a computer graphics term for a two-dimensional bitmap that is integrated into a larger scene. In the last few years, Facebook, Twitter, Instagram, and many other social media platforms grew like crazy.


1 Answers

inside e-mails you should use only very basic html, with basic inline styles. Mail client compatibilty is very different and poor (especialy outlook, wich is fairly common). I would definitly not use sprites in emails.

like image 148
Pevara Avatar answered Oct 18 '22 09:10

Pevara