VOOZH about

URL: https://www.geeksforgeeks.org/css/foundation-css-prototyping-utility-text-decoration/

⇱ Foundation CSS Prototyping Utility Text-Decoration - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

Foundation CSS Prototyping Utility Text-Decoration

Last Updated : 27 Mar, 2022

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

The Prototyping Utilities Text Decoration helps to underline, overline, or line-through a text.

Foundation CSS Prototyping Utility Text-Decoration Classes:

  • text-underline: To create an under-line, i.e a horizontal line below the text
  • text-overline: To create an over-line, i.e a horizontal line above the text
  • text-line-through: To create a line-through, i.e a horizontal line passing through the text

Enabling Text-Transformation:

@include foundation-prototype-text-decoration;

Syntax:

<p class="text-decoration-class"> Content </p>

Example 1: In this example, we will display some text to demonstrate the use of text-underline

Output:

πŸ‘ Image
 

Example 2: In this example, we will display some text to demonstrate the use of text-overline

Output:

πŸ‘ Image
 

Example 3: In this example, we will display some text to demonstrate the use of text-line-through

Output:

πŸ‘ Image
 
Comment