SVG image not rendering in lightbox - svg

My svg image renders on it's own, but will not display on lightbox. In other words, if you click the link, lightbox opens up but NO image. If I replace the svg with a png version, it shows. And like I said before, if I stick the svg image anywhere else on the site without using lightbox, including opening it on a page by itself, it renders perfectly. Are there any svg limitations with lightbox that I'm not aware of?? Thanks!!!

Related

Is there a way to preserve clickable areas in embedded SVG images?

I generate a SVG which is then embedded into a PDF. The SVG contains a hyperlink to an external URL according to this structure: <a xlink:href="..."><rect></rect></a>
When the SVG is rendered by a browser (FF in my case), clicking the rectangle would correctly open the hyperlink. When rendered by MPDF the rectangle would be displayed but the hyperlink doesn't work.
Is there any way to achieve this?

Make an SVG image's elements not scannable in devtools

I made a logo from SVG, and it looks and works fine. The only problem is that when I go into dev tools and then use the select an element tool, it also shows the elements inside of the SVG image as separate elements, rather than the SVG being A single element. I am using an embed tag so the custom font loads. Is there a way to make the SVG show as one image rather than many elements? Thank you!

Safari renders text in SVG with a different font

I’m working with an SVG on a website, and everything works fine except in Safari. Safari displays my SVG with a completely different font than what I used for the graphic.
Correct Rendering
This is how it’s supposed to display.
Safari Rendering
This is how Safari renders it.
I don’t have a lot of experience with using SVGs in web design, but I’m using CSS to set it as a background-image like I would anything. I can’t figure out what I’m doing wrong.
.titleContainer{
background-image: url(‘../img/logo.svg’)
}
This is most likely because you should "convert to outline" when you export the SVG from your design program. I could imagine that you selected to embed the font.
Ie in Adobe Illustrator you have the option to outline the font when you export:
Adobe Illustrator example

Chrome not rendering SVG referenced via <img> tag - link vs embed

I use Photoshop to export svg which works fine when used inside img tag in Firefox but fails in Chrome i.e. nothing shows up.
I have exactly the same problem as this question:
Chrome not rendering SVG referenced via <img> tag and using Adobe Illustrator and opening the .svg file and saving as embed does solve the issue.
So the seleced solution does solve my problem too but it requires Adobe Illustrator.
Since I don't need Adobe Illustrator for anything else, I wanted to know if there is an alternative?
http://jsfiddle.net/2x00wmxy/
<img src = "http://imgh.us/testsvg_1.svg" />
Try the jsfiddle in Chrome and Firefox and you'll see the difference.

Logo image with text on css3 gradient background of web page

In a web page there is a gradient (in body tag) using CSS3. Moving next and adding image (logo with site name) I realized page gradient and image both has different colors. It is because web page has a background generated by CSS3 and image has a fixed color as background and both are different.
What I have tried ?
add image as background of a div and also as a img tag.
applying gradient on div
but no luck.
How it can be managed ? Please guide.
Thanks
Cant you just save the text of your logo as a .png with a transparent background? If you've added the gradient to your body tag it will change when the browser window expands and contracts
you have to save your logo image with transparent background....you open the psd file of the logo and disable the visibility of the background layer and then save it as a png image.

Resources