A virtual teacher who reveals to you the great secrets of Base64

CSS Base64

CSS (an acronym for “Cascading Style Sheets”) is a formal language for describing the appearance of a document written using a markup language such as HTML or XML. It is mainly used to describe how a web page should look and for this purpose it can load additional web resources (such as images, fonts, or styles). As you probably guessed, such resources can be embedded in the CSS by encoding them to Base64, and sometimes it may improve the performance of the web-page.

As well as HTML, CSS supports Data URI to embed Base64 values. Of course, this does not mean that you need to embed all web resources in a CSS file. Therefore, do it wisely, and if you’re not sure, just don’t use it.

Below are listed some CSS properties that support Data URIs:

Add new comment

If you have any questions, remarks, need help, or just like this page, please feel free to let me know by leaving a comment using the form bellow.
I will be happy to read every comment and, if necessary, I will do my best to respond as quickly as possible. Of course, spammers are welcome only as readers.

Loading...