+ 3

what is "1000"? pixel, percantage, em? someone explain please. thanks in advance.

<svg width="1000" height="1000">

22nd Nov 2018, 3:08 AM
Vin Gayle
Vin Gayle - avatar
5 Respostas
0
Pixels
22nd Nov 2018, 3:51 AM
Elizabeth
Elizabeth - avatar
+ 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
26th Nov 2018, 5:31 PM
Morpheus
Morpheus - avatar
+ 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).
24th Nov 2018, 5:54 AM
Henri Evjen
Henri Evjen - avatar
+ 2
Didn't read the question properly saw only html5 and pixel Sorry for the mistake
23rd Nov 2018, 3:58 PM
Rishi Anand
Rishi Anand - avatar
+ 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
23rd Nov 2018, 3:37 PM
Kelvin Paul
Kelvin Paul - avatar