O'Reilly logo

Sams Teach Yourself SVG in 24 Hours by Micah Laaker

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Size

One of the most common changes you will make to your text is determining its point size. Point size is applied via a style property. By applying the font-size property to a text or tspan element, you can specify the size of the enclosed text. The property's syntax

font-size:x
					

allows for a variety of inputs for the numerical value and its input identifier (x). The most common are points (pt) and pixels (px), as these are the measurement values used in most design programs. (The identifiers are the same as those listed in the “units of measurement” chart in Hour 4.) Thus, if you want text that is 12 points in size, you would apply the following style command: font-size:12pt.

To change the point size of the example you've already done, take ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required