Foundation CSS Prototyping Utilities Text Transformation
Last Updated :
20 Feb, 2023
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-Transformation Classes:
- 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.
HTML
<!DOCTYPE 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-Transformation</ h3 >
< br >
< h2 style = "color:red" > text-lowercase</ h2 >
< p class = "text-lowercase" >Geeks for geeks is
a computer science portal.It helps many
tech aspirants to upskill their coding
skills. It also gives opportunities 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-uppercase.
HTML
<!DOCTYPE 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-Transformation</ h3 >
< br >
< h2 style = "color:red" > text-uppercase</ h2 >
< p class = "text-uppercase" >Geeks for geeks is
a computer science portal.It helps many
tech aspirants to upskill their coding
skills. It also gives opportunities 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-capitalize.
HTML
<!DOCTYPE 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-Transformation</ h3 >
< br >
< h2 style = "color:red" > text-capitalize</ h2 >
< p class = "text-capitalize" >Geeks for geeks is
a computer science portal.It helps many
tech aspirants to upskill their coding
skills. It also gives opportunities 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:
Reference: https://get.foundation/sites/docs/prototyping-utilities.html#text-transformation
Share your thoughts in the comments
Please Login to comment...