VOOZH about

URL: https://www.geeksforgeeks.org/css/foundation-css-prototyping-utilities-text-transformation/

⇱ Foundation CSS Prototyping Utilities Text Transformation - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

Foundation CSS Prototyping Utilities Text Transformation

Last Updated : 23 May, 2025

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 Transformation helps to handle the case of the text i.e we can convert the case to lowercase, uppercase and capitalized case.

Foundation CSS Prototyping Utility Text-TransformationClasses:

  • text-uppercase: This class is used to change the case of the content to uppercase.
  • text-lowercase: This class is used to change the case of the content to lowercase.
  • text-capitalize: This class changes the first letter of every single word, leaving the case of other letters as it is.

Enabling Text-Transformation:

@include foundation-prototype-text-transformation;

Syntax:

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

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

Output:

πŸ‘ Image

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

Output:

πŸ‘ Image

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

Output:

πŸ‘ Image


Comment