<community>of XML and SVG Developers</community>
This is a discussion on viewbox and length,width within the SVG Questions forums, part of the SVG Forums category; hi, i'm new to svg what is the difference between viewBox,length,width attributes in svg tag. view box includes the width ...
| |||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| |||
|
Hi abaccus width and height attributes determine the physical width and height(visible area) of the drawing, wereas the width and height specified b viewBox determine the width and height of the user-coordinate system. <svg width="100px" height="100px" viewBox="0 0 200 200"> <rect x="0" y="0" width="100" height="100"/> </svg> with this you say that one user-coordinate unit is 0.5px.so the rect will have a dimension of 50px X 50px. here is a second example: <svg width="2in" height="2in" viewBox="0 0 100 100"> <rect x="0" y="0" width="50" height="50"/> </svg> one user-coordinate unit is now 1/50 in.so the rect will have a dimension of 1in X 1 in. this is extremly useful for paths since there is no way to specify units for a path. path coordinates are allwas in user-coordinate units. hope it helps have fun Holger |
Ink Cartridges For Inkjet Printers
It is much cheaper to buy ink cartridges for inkjet printers online.
hard disk drive data recovery lancashire
Data Clinic's dedicated Customer Service and excellent hard disk drive data recovery extend even to Lancashire and surroundings.