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 ...

Get Sams Teach Yourself SVG in 24 Hours now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.