Is it possible to use SVG images as CSS background?

Why does Google use an image instead of HTML/CSS or embedded SVG as the "normal" text logo on its home page?

  • Using text instead of images, especially when the image contains text that's easily reproducible, is a preferred practice for accessibility and usability. Why is Google using a non-scalable PNG when they certainly have many SVGs of their logo and could reproduce it in HTML and CSS in seconds?

  • Answer:

    Browser compatibility and cacheing. Most everyone (I'm going to guess at 99.9% of browsers) have the Google logo cached, so there's really very little stress on their servers. For display compatibility in older browsers, images still rule that world.

Wayne Helman at Quora Visit the source

Was this solution helpful to you?

Other answers

From a design point of view, using text for logos on the web is an extremely bad idea: kerning, tracking, sizing, colouring, spacing, sizing, positioning, skewing and shading (for a few examples) are difficult in one browser, never mind every browser. HTML/CSS is not good for this at all. SVG is, but it's complex and it can be slow to render (if it's even supported). And the image is tiny and is likely cached anyway. It has zero accessibility concerns (this is why you use an alt tag).

Daniel Couper

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.