Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to display SVG images on my site?

I have a website with SVG images, but I have a problem. My site is on an Apache server with my host. My images are displayed very well when my site was on my local server but now it is on my host images no longer appear. I controlled the url is correct. I can access with the url directly on the image, but the images are not displayed on my site.

HTML

<span class="logo">Logo</span>

CSS ;

div.main-content-logo h1#header-logo .logo {
    background: url("../img/logos/logo-main.svg") no-repeat scroll 0 0 / 260px auto rgba(0, 0, 0, 0);
    color: rgba(0, 0, 0, 0);
    text-indent: -999px;
}
div.main-content-logo h1#header-logo .logo {
    display: block;
    height: 78px;
    width: 260px;
}

Can you help me?

like image 814
Florent Avatar asked Mar 07 '14 14:03

Florent


1 Answers

Have you specified the MIME type in the .htaccess file? see here: http://www.w3.org/services/svg-server/

like image 123
DavidT Avatar answered Sep 21 '22 08:09

DavidT