• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint

Summary

SVG allows for a variety of units of measurement, letting you code your documents according to your preferences. Although defaulting to user units (which equate to pixels on the computer screen) unless otherwise specified, SVG allows for variable dimensions for both object and document dimensions. By using percentages, your SVG content can scale in proportion to its container (most often the Web browser).

The viewBox attribute modifies how content is displayed within the SVG document's dimensions. viewBox can be used to alter the location of the top leftmost corner of the content's display, scale the content to match the dimension's of the display, or both.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint