Foundation CSS Typography Helpers Lead Paragraph
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. It is more sophisticated, flexible, and easily customizable. It also comes with CLI, so it’s easy to use it with module bundlers. It offers the Fastclick.js tool for faster rendering on mobile devices.
Foundation CSS helper classes allow us to scaffold certain typographic styles faster. Foundation CSS has multiple typography helpers such as Text Alignment, Subheader, Lead Paragraph, Unbulleted List, and Typescale. In this article, we will learn about the Lead Paragraph Typographic helper.
Foundation CSS Lead Paragraph typographic helper creates a slightly larger block of text which is useful for blurbs and other descriptive text. To convert a text block to Lead Paragraph in Foundation CSS, we use the lead class. This class can be applied to any tag with a text block content i.e. <div>, <span> or <h1> tags.
Foundation CSS Lead Paragraph Typographic Helper Class:
- lead: This class creates increases the font size slightly to create a larger and bolder block of text.
Example 1: The following example demonstrates the Lead Paragraph typographic helper class by comparing it to a normal block of text.
Example 2: The following example demonstrates the Lead Paragraph typographic helper class in a card with different colors.