+ 3
what is "1000"? pixel, percantage, em? someone explain please. thanks in advance.
<svg width="1000" height="1000">
5 Réponses
0
Pixels
+ 7
SVG s are scalable graphics i.e
If you do not specify any units inside the width and height attributes, the units are assumed to be pixels. That is, a width 1000 means 1000 pixels. The units you set on the <svg> element only affects the size of the <svg> element (the viewport).
http://tutorials.jenkov.com/svg/svg-viewport-view-box.html
+ 3
"1000" is in pixels. When no unit is specified it naturally defaults to pixels. You can use em relative to font size, vw and vh for the percent of the view width and view height, % relative to the parent element, or just px (pixels).
+ 2
Didn't read the question properly
saw only html5 and pixel
Sorry for the mistake
+ 1
Rishi Anand it is wrong because
The px unit and other unites are not supported in svg
We simply use
<svg width="1000" height="1000">
</svg>
but 1000 means 1000pixels