Questions tagged as 'svg'

1
answer

Sprite in SVG for Internet explorer

I read an article that explained how to put multiple SVG images into a single file. The final file looks like this: <?xml version="1.0" encoding="UTF-8"?> <svg version="1.1" xml:space="preserve" xmlns="http://www.w3.org/2000/svg">...
asked by 09.07.2018 / 20:28
1
answer

Regulation of svg

I'm looking for new effects, to improve my portfolio. I really liked this effect, but there is an error that I could not adjust. The height cuts when hovering. After much searching, I was able to do a size adjustment by moving the svg paramet...
asked by 12.09.2018 / 21:18
1
answer

Centering elements of an SVG

Hello, I have <g> inside an SVG and would like to centralize your content, basically it would look like this: +-----------------+ x-----------------+ | X | | | | | |...
asked by 13.11.2018 / 20:01
1
answer

How to add and remove classes when clicking on an SVG path?

I'm working with a map of Brazil in SVG, and I need when I click on a state, it adds the "active" class and removes the "active" class from the others. It also has the function of adding the state name to an input. Example: <path id="San...
asked by 04.03.2014 / 14:17
0
answers

How do I put CSS correctly in an SVG rendered in the view via the use tag?

I'm using AngularJS to load an element, but it does not grab the CSS. A View: <svg version="1.1" id="body_1" data-name="body-1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewB...
asked by 08.12.2017 / 14:40
0
answers

Icon svg does not occupy 100% of area in tag svg

I'm having problems with one of my icons in svg, it does not occupy 100% of width and height of tag svg and this ends up getting me in some alignments with texts and other icons. > Follow the code: <svg> <...
asked by 17.04.2017 / 17:28
1
answer

I can not define a vector image as an application icon [duplicate]

As you can see I have correctly added a image.svg so that it acts in a vector way: TheproblemhappenswhenItrytoputitasanapplicationicon: IgoinAndroidManifest.xmlandIusuallychangethelineandroid:icon="@drawable/ic_tree" just like I do w...
asked by 06.02.2017 / 22:10
0
answers

Get X and Y of g with ID even when zooming

I have a map of Brazil with several <g> svg. Each element of this is a municipality. I need to get the X and Y of this element in relation to div that svg is. The bigger problem is because I have a zoom, that when clicking for examp...
asked by 18.02.2017 / 17:06
1
answer

Return to line TEXT SVG

I'm creating a text svg dynamically, and I want to return the middle line of the two variants when I print. I tried the "\ n" and the "br" but it does not make me. var text_h_fin = document.createElementNS("http://www.w3.org/2000/svg", "text")...
asked by 23.05.2015 / 20:03
1
answer

Problem with background in svg

I'm studying a bit about svg and found the giant forms incredible on the websites, however I'm having a hard time reproducing correctly. I created a form of size 693x768 that will cut a page, but I can not make it always fill 100% in height. H...
asked by 04.04.2015 / 00:29