Relative Content

Tag Archive for csssvg

SVG icon not visible

I don’t know what could be the problem with the SVG code below. It is not displayed in the browser, but it looks nice when displayed directly. If I replace them in the CSS with any other SVG, they all show up.

Handwriting SVG for caret ^

My goal is to implement a SVG of a caret symbol ^ that remains symmetric when mirrored, while using readable code.

Make font in embedded SVG the same size as in surrounding HTML

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 attribute of their parent <svg>, as do HTML elements placed in a <foreignObject> tag.

How do you tackle svg positioning in a website?

I am trying to practice my web dev skills and I ran into some problems. I am currently trying to do a challenge in front end mentor. I would say I am 70% done with the challenge but I am stuck with the image positioning.

Approach to connecting points with lines in SVG, so the lines connect smoothly?

I am creating 2D molecule visualizations using a “molfile”, which is a collection of x,y,z points for atoms (I just use the x and y points for 2D renderings), and a collection of bonds linking the atoms. I create circles for all non-carbon atoms, and lines between atoms for bonds, in SVG. However, it looks like this currently: