Top "Svg" questions

Scalable Vector Graphics (SVG) is an XML-based two-dimensional vector graphics format that can also be used in HTML.

How can I remove or replace SVG content?

I have a piece of JavaScript code which creates (using D3.js) an svg element which contains a chart. I …

javascript ajax svg d3.js
SVG: text inside rect

I want to display some text inside SVG rect. Is it possible? I tried <svg xmlns="http://www.w3.…

text svg rect
Drawing an SVG file on a HTML5 canvas

Is there a default way of drawing an SVG file onto a HTML5 canvas? Google Chrome supports loading the SVG …

html canvas svg
Fill SVG path element with a background-image

Is it possible to set a background-image for an SVG <path> element? For instance, if I set the …

html css image svg background-image
Default background color of SVG root element

I'd like to set a default background color for the entire SVG document, to red for example. <svg viewBox="0 0 500 600" …

svg
Changing SVG image color with javascript

I am trying to alter svg image colors with javascript. Is this possible? Can I load it as an object …

javascript svg
Add custom icons to font awesome

I love the Font Awesome icon font and want to use it for most of the icons on my site …

svg webfonts font-awesome
SVG Positioning

I'm having a play with SVG and am having a few problems with positioning. I have a series of shapes …

svg position grouping
How to place and center text in an SVG rectangle

I have the following rectangle... <rect x="0px" y="0px" width="60px" height="20px"/> I would like to …

text svg
How to access SVG elements with Javascript

I'm messing around with SVG and I was hoping I could create SVG files in Illustrator and access elements with …

javascript svg raphael