I am facing an issue with positioning SVG elements on a web page. Even though I have set the x,y coordinates to 0,0 and used CSS to position it on the left side of the page, the SVG remains in the center.
Here is a link to the problem replicated in jsFiddle:
https://jsfiddle.net/wf806vvL/
Below is the HTML code:
svg {
float:left;
content-align: left;
padding-left: 0;
}
<svg xmlns="http://www.w3.org/2000/svg" id="circleGroup" width="100%" height="100vh" viewBox="0 0 700 1000">
<circle id="circle" class="circle" cx="100" cy="125" r="20" fill="#1dacf9" stroke="black" stroke-width="2"/>
</svg>
I have tried various CSS styling options related to positioning, as well as placing the SVG in a div and applying positioning to it, but nothing seems to work.
My limited understanding of CSS and HTML has led me to exhaust all possible solutions, so I'm reaching out for help here. It's likely that I am missing something obvious, so any insights would be appreciated.
Does anyone know why this issue persists?