Foundation CSS Typography Helpers Typescale
Foundation CSS is an open-source & responsive front-end framework built by ZURB foundation in September 2011, that makes it easy to design beautiful responsive websites, apps, and emails to look amazing & can be accessible to any device. It is used by many companies such as Facebook, eBay, Mozilla, Adobe, and even Disney. The framework is built on Saas-like bootstrap.
Scaffolding certain typographic styles is faster using the foundation CSS helper classes. These CSS has multiple typography helpers such as Text Alignment, Subheader, Lead Paragraph, Unbulleted List, and Typescale. In this article, we will learn about the Typescale Typographic helper.
The Foundation CSS Typescale Typographic Helper is used to adjust the font size by overriding an element’s default size. This can be useful to size a <p> or <h1> through <h6> using Foundation’s existing header sizes. To override the default size of the element in Foundation CSS, we use the h1/h2/h3/h4/h5/h6 classes.
Foundation CSS Typescale Typographic Helper Class:
- h1/h2/h3/h4/h5/h6: These classes different font scale where h1 is largest and h6 is smallest.
Example 1: The following example demonstrates the Typescale typographic helper class in the <p> element.
Example 2: The following example demonstrates the Typescale typographic helper class in the <h1> through <h6> element and is used to override their default size.
Please Login to comment...