SVG | Sololearn: Learn to code for FREE!
Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок


When designing ones own shape and placing ones own points, how does the axis of the page work? is my axis determined by my set width and height. Eg, if i set the height to 1000, is the y axis 1000 spaces long .. does my question make sense?

9th Apr 2017, 11:57 PM
Mogammad Shameer Losper
Mogammad Shameer Losper - avatar
1 ответ
+ 6
'width' and 'height' attribute of <svg> element works like those of <img> element: - both html attributes are corresponding to both css attributes - setting one calculate the other proportionnally But as <svg> are resolution independant ( rather than bitmaps ), the axis are also resolution independant and not directly related to 'width' and 'height', but to the 'viewbox" attribute of <svg> element:
10th Apr 2017, 3:15 AM
visph - avatar