0
<svg width="2000" height="2000"> <circle cx="80" cy="80" r="50">here the svg height and width is associated with which thing?
Svg
6 Answers
+ 6
The "width" and "height" attribut of <svg> element define the size. The default unit is the pixel, but can be em, ex, px, pt, pc, cm, mm.
The "viewport" attribute allow to redefine the unit in the svg scope, as vector graphics are virtually infinite sizing:
<svg width="1000" height="500" viewport="0 0 100 500">
... will have a scale of 1/10.
More verbose explanation here:
http://tutorials.jenkov.com/svg/svg-viewport-view-box.html
+ 1
do you mean the unit of measurement? that would be pixels by default.
0
no the svg width and height is associated with circle or something else?? coz the radius of tge circle is given in circle tag
0
usually associated with a rectangle. Maybe go with Mario I am a bit out of date with css. Like he said a size in width and height can be bypassed for px size when dealing with svg
0
no prblem thnx anyways
0
thnx @visph