SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Enthusiast MartyBoi's Avatar
    Join Date
    Dec 2011
    Location
    Saginaw MI
    Posts
    53
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question <img> SVG Image Issue With Google Chrome

    Hi !

    I am trying to employ SVG Images, works great in All Browsers, even IE, but Google Chrome, Nooooooooo ! I even have the current Version of Google Chrome, still a no go.

    Can anyone tell me if this is common?
    Code:
    <div id="logo">
    	<a href="<?php echo home_url(); ?>">
    		<!-- SVG Logo - toddmotto.com/mastering-svg-use-for-a-retina-web-fallbacks-with-png-script -->
    		<img src="<?php echo get_template_directory_uri(); ?>/img/logo.svg" alt="Logo"> 
    	</a>
    </div>
    Thank you

  2. #2
    It's all Geek to me silver trophybronze trophy
    ralph.m's Avatar
    Join Date
    Mar 2009
    Location
    Melbourne, AU
    Posts
    24,293
    Mentioned
    460 Post(s)
    Tagged
    8 Thread(s)
    Hm, since no one has responded yet, could you post a link to example where it's not working? It's hard to assess an HTML question when we don't know the exact HTML output.

  3. #3
    SitePoint Wizard Stomme poes's Avatar
    Join Date
    Aug 2007
    Location
    Netherlands
    Posts
    10,281
    Mentioned
    51 Post(s)
    Tagged
    2 Thread(s)
    There are reports of sometimes Chrome on one OS acting differently than on another, so you might as well say which OS the problem is.

    Second, if you could make a test case, just the SVG in an anchor say, which shows the problem, others can see if it affects other OSes and help narrow it down. Ralph has a Mac and I run Linux, for example.

    Lastly since we know in general, SVG works in Chrome, we'd need to see if it's the SVG itself, if you can share that file. Otherwise, another SVG file or markup that shows the same problem that we can reproduce.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •