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

All Questions

Tagged with
0 votes
0 answers
16 views

Webpack: How do I replace <use> tag with actual svg data?

My index.html uses a svg in this way: <button class="button--settings" id="button_settings"> <svg role="img"> <use href="assets/images/...
Bromanius's user avatar
1 vote
1 answer
26 views

Replace img tag with in-line SVG with BeautifulSoup

I have an HTML file produced by pandoc, where SVG illustrations have been embedded. The SVG content is encoded in base64 and included in the src attribute of img elements. It looks like this: <...
mrgou's user avatar
  • 2,144
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
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
1 vote
4 answers
73 views

How to time a svg transformation with javascript

In this example, the svg-plus button transforms into a close button when clicked and vice versa with svg.setAttribute("transform","rotate(45)");. Is it possible to time this ...
Simplicissimus's user avatar
0 votes
1 answer
56 views

Using a CSV to set "fill" for SVG circles

I have SVG code that I would like to modify (with JavaScript?). I could use some help figuring out how to change the circles, as shown in the picture below, in accordance with values from a ...
Logan W.'s user avatar
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
51 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 vote
1 answer
72 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
3 votes
1 answer
81 views

Fixing Transparent Line Between Div with Clip-Path and Parent Div

A thin, transparent line appears between the triangular div and its parent div when zoomed. I believe this is likely caused by anti-aliasing in the browser. If there is a way to fix this, I would ...
Mr.Unknown's user avatar
0 votes
0 answers
26 views

SVG embedded in external html page doesn't show in iframe

I want to embed an external webpage (https://flaci.com/regexp) into an html page of mine. I did this with an iframe: <!DOCTYPE html> <html> <body> <p> Here some text ...
claudia's user avatar
  • 101

15 30 50 per page
1
2 3 4 5
782