Is it possible to use percentage to draw a circle in svg?? | Sololearn: Learn to code for FREE!
¡Nuevo curso! ¡Todo programador debería aprender IA Generativa!
Prueba una lección gratuita
0

Is it possible to use percentage to draw a circle in svg??

The cx and cy element seem to be pixel elenents(if I am wrong please correct me). Is there a way to push the centre of the circle with percentages

29th Dec 2018, 11:23 PM
Imim Kalada-green
Imim Kalada-green - avatar
1 Respuesta
+ 1
cx/cy (means circle x and circle y) are the coordinates of the center of the circle on the svg viewbox. And yes, you can use percents for cx/cy.
29th Dec 2018, 11:47 PM
Boris Batinkov
Boris Batinkov - avatar