Open In App

Foundation CSS Prototyping Utility Text-Decoration

Last Updated : 27 Mar, 2022
Improve
Improve
Like Article
Like
Save
Share
Report

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

HTML




<html>
  
<head>
    <link rel="stylesheet" href=
    <link rel="stylesheet" href=
</head>
  
<body>
    <h1 style="color:green">GeeksforGeeks</h1>
    <h3>Foundation CSS Prototyping Utilities
        Text-Decoration</h3>
    <br>
    <h2 style="color:red"> text-underline</h2>
    <p class="text-underline">Geeks for geeks is
        a computer science portal.It helps many
        tech aspirants to upskill their coding
        skills. It also gives opportunites to
        secure a job via various coding events
        like Job-a-thon. It provides a wide range
        of courses that facilitates the students
        to enhance their skills.</p>
  
</body>
  
</html>


Output:

 

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

HTML




<html>
  
<head>
    <link rel="stylesheet" href=
    <link rel="stylesheet" href=
</head>
  
<body>
    <h1 style="color:green">GeeksforGeeks</h1>
    <h3>Foundation CSS Prototyping Utilities
        Text-Decoration</h3>
    <br>
    <h2 style="color:red"> text-overline</h2>
    <p class="text-overline">Geeks for geeks is 
        a computer science portal.It helps many
        tech aspirants to upskill their coding
        skills. It also gives opportunites to 
        secure a job via various coding events
        like Job-a-thon. It provides a wide range
        of courses that facilitates the students 
        to enhance their skills.</p>
  
</body>
  
</html>


Output:

 

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

HTML




<html>
  
<head>
    <link rel="stylesheet" href=
    <link rel="stylesheet" href=
</head>
  
<body>
    <h1 style="color:green">GeeksforGeeks</h1>
    <h3>Foundation CSS Prototyping Utilities
        Text-Decoration</h3>
    <br>
    <h2 style="color:red"> text-line-through</h2>
    <p class="text-line-through">Geeks for geeks is 
        a computer science portal.It helps many
        tech aspirants to upskill their coding
        skills. It also gives opportunites to 
        secure a job via various coding events
        like Job-a-thon. It provides a wide range
        of courses that facilitates the students 
        to enhance their skills.</p>
  
</body>
  
</html>


Output:

 



Like Article
Suggest improvement
Share your thoughts in the comments

Similar Reads