Questions tagged as 'svg'

1
answer

How to add an external source in an SVG?

I have a logo that I made in SVG , in file .svg external, which uses a text with the name of the company, whose source is Open Sans Light . On my machine it works normally, due to the fact that I have the font installed....
asked by 22.11.2017 / 13:38
1
answer

Move Browser Image

I'm moving an image with the mouse. When I use Chrome it works perfectly. But when I use the Firefox browser, moving the image shows the ban icon on the mouse, and the move is different. How can I resolve this? Example: link     
asked by 24.03.2015 / 18:01
2
answers

SVG file in CSS does not perform Javascript function

I'm using an SVG as background-image , via css: #element { background-image: url('triangle.svg'); } Then inside the SVG file I call a function in onload because I need to pass RGB color parameters to SVG and change the fil...
asked by 02.04.2015 / 15:12
1
answer

Copy (clone) an SVG element

I want to "clone" an SVG rect in JavaScript when I click a button. I tried this code, but it did not work. <svg id="svg"> <rect id="rect" x="5" y="25" width="50" height="50" stroke="#0E0E0E" style="fill:red; stroke-width:1" />...
asked by 20.10.2014 / 02:19
1
answer

Vectorized Images, Awesome Font, Bootstrap Glyphicons. How do they work, what are the advantages and disadvantages?

I was checking out Font Awesome and Bootstrap . Home They use a font scheme for icons: In Awesome Font I saw the following files:    FontAwesome.otf    fontawesome-webfont.eot    fontawesome-webfont.svg    fontawesome-webfont.ttf  ...
asked by 08.12.2014 / 22:28
1
answer

Working with SVG files dynamically

I'm developing a web page where I use a lot of CSS effects. between one of them I realized that I can not use filters in Firefox. Searching the internet I found some solutions that tell me to use SVG files. The problem is when I need to use 2 fi...
asked by 13.12.2013 / 19:33
2
answers

Compare attribute id with class and give .show in another div

I'm making a map of Brazil as svg, I need it when I click on a particular state it gives a show on a different div that will get information about that state. I need to compile the id of the path with the div class and display .show Follow...
asked by 27.03.2015 / 18:49
2
answers

Why does not my .svg work in Firefox?

My .svg is not loaded in Firefox, in chrome it works fine. I'm using css to do this, with the background: url('data:image/svg+xml...) property. I made a JSFiddle for example, containing all the code. Edit: I do not want to use base...
asked by 12.07.2018 / 15:31
2
answers

Change SVG color in: hover

I have SVG inserted with the img tag on my site. I would like to know if there is a way when I do the hover in this image it changes color, but only with CSS? This is the content of my SVG <?xml version="1.0" encoding="utf-...
asked by 12.01.2015 / 16:21
1
answer

How to put a border / stroke in an image in an SVG?

I need to add a stroke around a <image> within a <svg> . But nothing happens when you add the value in that tag. See below what happens: when I use it in <image> it does not work, however in <...
asked by 24.04.2018 / 18:08