Skip to main content

Questions tagged [svg]

Scalable Vector Graphics (SVG) is an XML-based two-dimensional vector graphics format that can also be used in HTML. Do not add this tag just because your project uses SVG. Instead, add the tag if your question is either about SVG or closely related, like how to achieve something with SVG.

0 votes
1 answer
25 views

How to remove space from svg file in PHP

I need your help urgently. I'm going to remove the white space in svg file. How to remove that? Please help me. This is the my svg file. <svg xmlns="http://www.w3.org/2000/svg" fill="none" ...
Noah Thomson's user avatar
-2 votes
0 answers
23 views

How to change the color of the svg icon using tailwindcss only while hovering through it? [duplicate]

I already read the questions about the SVG and this question my question is about how to do this with Tailwindcss only. The project tools are React and Tailwindcss. I want to change the color of the ...
Amin Alizadeh's user avatar
0 votes
2 answers
27 views

Dynamically changing the attribute of an svg element in a highcharts chart

For a certain application, I have created draggable SVG rectangles in my highcharts chart. I wish to access them and modify their attributes dynamically from an external function where I have the '...
Abhay Kaushik's user avatar
0 votes
3 answers
54 views

CSS local svg icon color [duplicate]

I am trying to setup some custom svg icons like this <i class="my-svg-icon"></i> I have the svg displayed but cannot adjust the color .my-svg-icon { height: 25px; width: ...
user3074140's user avatar
0 votes
1 answer
35 views

Using setAttributeNS for changing SVG Path Arc element

I'm trying to store the coordinates of my SVG Path statement inside the eXist database. Here is my XHTML code: <html xmlns="http://www.w3.org/1999/xhtml"> <head> &...
Speedlearner's user avatar
0 votes
2 answers
45 views

Fontawesome svg-icons in openlayers

I know similar questions have been asked before but their answers don't help me. I'm trying to use Fontawesome-Icons as markers in an Openlayers map like this: const svg = ` <svg ...
wubbe's user avatar
  • 3
-1 votes
0 answers
61 views

Using setAttribute with SVG Path Arcs [closed]

I'm currently using XHTMl and SVG. After doing much research on the topic, I have come to the realization that the statement document.getElementById won't work with SVG elements. This is especially ...
Speedlearner's user avatar
-1 votes
1 answer
32 views

Image contained in parent element using tailwind flexbox layout

I have a template layout using flexbox and tailwindcss. I am trying to superimpose svg onto an an image and confine them to the max size of parent container. The image and SVG need to be responsive. ...
srl's user avatar
  • 1
-3 votes
0 answers
42 views

How to make the parent element have the same width and height as the child svg element? [closed]

Hi so I am currently making a project with Vite.js with React + TSX, Tailwind and Daisy UI. I am currently trying to make a model button that overlaps a svg. The issue is that the button's width and ...
Daniel's user avatar
  • 25
0 votes
2 answers
40 views

Load SVG code in HTML elements by class, can't select multiple elements with the same class

I'm trying to show SVG coded icons through JS in a number of HTML elements. I figured out how I can show it once, but I can't get GetElementByClassname to select multiple elements. This is the code I ...
Namteor's user avatar
  • 19
0 votes
1 answer
34 views

Links(Hyperlinks) inside an svg not working when the svg is placed in an img tag in a Bootstrap 5 Modal

In fact , the pointer doesn't even change its shape when it is hovered over the part containing the hyperlink. When I open the svg file separately in my browser , the links work alright . Below is ...
sky-prince-gamer's user avatar
1 vote
1 answer
63 views

Why don't SVG filters take into account the position of the SVG's viewBox, since they do take into account its size?

<svg viewBox="60 0 200 40"> <filter id="blur" filterUnits="userSpaceOnUse"> <feGaussianBlur stdDeviation="1" /> </filter> <path d="M 70 5 l 0 10" style="filter: ...
Joseph Sible-Reinstate Monica's user avatar
0 votes
0 answers
17 views

Build failed in Storybook webpack config caused by svg

this error occurs when launching storybook, all svg that i use in the application cause an error in ./src/shared/assets/icons/about-20-20.svg ...etc Module build failed (from ./node_modules/@svgr/...
frik's user avatar
  • 1
-1 votes
0 answers
27 views

How to customize animation of svg in react? [closed]

I am pretty curious how brilliant creates a page like this: The animation of svg is compeletely interactive to the programming block in the toolbox. I want to make a page similar to this in react. Is ...
Libra's user avatar
  • 17
2 votes
1 answer
41 views

Is it possible to disable svg's animate element for prefers-reduced-motion media query?

I've got an svg with animation done using animateTransform element <svg width="100" height="100" viewBox="0 0 100 100" fill="none" xmlns="http://www.w3.org/2000/svg"> <g> <...
Konrad's user avatar
  • 24.3k

15 30 50 per page
1
2 3 4 5
2943