Skip to main content
The 2024 Developer Survey results are live! See the results

All Questions

Tagged with
0 votes
0 answers
15 views

Make font in embedded SVG the same size as in surrounding HTML [duplicate]

Is there a CSS-only way of making the font of <text> elements inside an embedded SVG conform to the font size of the surrounding HTML? <text> elements scale according to the viewBox ...
BadIdeaException's user avatar
0 votes
0 answers
24 views

Gradient icon stroke does not work on some `path` elements [duplicate]

I have the following gradient definition: <linearGradient id='landing-page-svg-gradient' x2='1' y2='1'> <stop offset='0%' stopColor='#C6FFDD' /> <stop offset='...
Korer's user avatar
  • 67
-1 votes
0 answers
38 views

How Can I insert a div into svg? [closed]

I'm trying to put a react component into a svg and I did it but the items (elements) of the component are overflowing out of the svg path boundries. I want the svg path boundaries to not overflow the ...
ncjpr04's user avatar
1 vote
0 answers
25 views

Change SVG stroke color for <line> in CSS [closed]

I'm trying to change the stroke color for lines in my SVG dynamically using CSS. The CSS file is correctly linked, as other styles like fill are applied successfully. However, the stroke color doesn't ...
Mariam Khaled's user avatar
0 votes
0 answers
21 views

Mask div using SVG with filter?

I have a div, that I want to be masked by an svg containing a filter. Specifically, I have a parent SVG that has a mask containing a filter to create a cloud effect. <svg version="1.1&...
jNiuk's user avatar
  • 153
0 votes
1 answer
36 views

how to add an svg image to the middle of a html/css website, but have it also mask a gallery of images [closed]

I want to add a gallery to my website but unsure of where to start. The idea is that there is an ipod in the middle and if you click on the left and right 'buttons' it will act as the arrows in the ...
user26462389's user avatar
-1 votes
0 answers
36 views

Interactive Map of UK counties, every County only shows one county name

I have an interactive map of the UK. I used a SVG map and have added CSS so everything looks good but when I hover over each county the name does NOT appear and each county only links to the webpage ...
Alearner's user avatar
0 votes
1 answer
62 views

Positioning an input button and overriding SVG

If you make the beginning coordinates and ending coordinates of the Bezier curve equidistant, then you can duplicate Bezier curves. If you click the button, a second Bezier curve will appear under the ...
Speedlearner's user avatar
-3 votes
0 answers
30 views

Create square SVG that fills out remaing vertical or horizontal space [closed]

I have a square SVG image. I would like to fit it into the page such that it fills out either remaining horizontal or vertical space (whichever is smaller). I can't seem to make it happen with flexbox ...
user2741831's user avatar
  • 2,270
0 votes
1 answer
51 views

HTML SVG Reduce Path Circle Size

I have a svg grey circle and a red path that follows the circle/overlays. Does anyone know how to shrink the red circle so that it 100% covers the grey circle? I cannot for the life of me work out how ...
Kane Li's user avatar
0 votes
1 answer
77 views

SVG Component Rendering Inconsistently Across Browsers

I'm working on an SVG gauge component that works perfectly in Chrome but has rendering issues in Safari and Firefox. The gauge displays progress using a gradient fill and a rotating pointer. In Chrome,...
user26411203's user avatar
0 votes
1 answer
63 views

Transition on Fill property with linearGradient inside of SVG

I'm trying to achieve some kind of Stepper. It all works well except for the transition on the fill. let step = 0; document.querySelector("button").addEventListener('click', () => { step++; ...
Symtox's user avatar
  • 308
0 votes
2 answers
68 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
-3 votes
0 answers
44 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
1 answer
36 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

15 30 50 per page
1
2 3 4 5
809