How can I position an svg element | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

How can I position an svg element

16th Feb 2017, 9:00 PM
Idowu Shogbon
Idowu Shogbon - avatar
2 Answers
+ 1
You are trying to getting a badge for a good answer to your question, but neither question nor answer are good... You are bad mixing different concept: 'float' property don't allows to 'position' element ( to do that, the most direct css property about it, is... 'position' ^^ ), especially not a SVG element... In meaning of 'positionnement mode' of Html, you can 'position' only Html elements ( <svg> is an html element, but its childs are SVG element, and the Css language apply for both, but rules/properties not the same, even if some are shared ). In meaning of 'position in the 2D space of the display' an element, you can do this with specific properties ( not same in html ans svg ), since you correct declare the 'positionnement mode' of your Html element ( Svg element are designed at start to be handle by this way ) :P
17th Feb 2017, 1:35 PM
visph
visph - avatar
0
By using the 'float' property
16th Feb 2017, 9:03 PM
Idowu Shogbon
Idowu Shogbon - avatar