Open In App

Tachyons Typography White Space

Tachyons is a CSS toolkit that is used to create a responsive website. In this article, we will learn how we can provide white space on a web page using the CSS toolkit named Tachyons. 

Tachyons Typography White Space is used to control how whitespace is rendered.



Tachyons Typography White Space Classes:

Syntax:



<element-name class=" ">
    ...
</element-name>

Example 1: In the below code, we will make use of the “ws-normal” class.




<!DOCTYPE html>
<html>
  
<head>
    <link rel="stylesheet" href=
</head>
  
<body>
    <center>
        <h1 class="green">
            GeeksforGeeks
        </h1>
        <h3>
            Programming Language
        </h3>
        <p class="ws-normal">
            Programming Language is indeed the fundamental 
            unit of today’s tech world. It is considered 
            as the set of commands and instructions that 
            we give to the machines to perform a particular 
            task. For example, if you give some set of 
            instructions to add two numbers then the machine 
            will do it for you and tell you the correct answer 
            accordingly. But do you know that Programming 
            Languages are having a long and rich history 
            of their evolution? And with a similar concern, 
            here in this article, we’ll take a look at the 
            evolution of Programming Languages over the period.
        </p>
    </center>
</body>
  
</html>

Output:

 

Example 2: In the below code, we will make use of the “nowrap” class.




<!DOCTYPE html>
<html>
  
<head>
    <link rel="stylesheet" href=
</head>
  
<body>    
    <center>
        <h1 class="green">
            GeeksforGeeks
        </h1>
        <p class="nowrap">
            Programming Language is indeed the fundamental 
            unit of today’s tech world. It is considered 
            as the set of commands and instructions that 
            we give to the machines to perform a particular 
            task. For example, if you give some set of 
            instructions to add two numbers then the machine 
            will do it for you and tell you the correct answer 
            accordingly. But do you know that Programming 
            Languages are having a long and rich history of 
            their evolution? And with a similar concern, 
            here in this article, we’ll take a look at the 
            evolution of Programming Languages over 
            the period.
        </p>
    </center>
</body>
  
</html>

Output:

 

Reference: https://tachyons.io/docs/typography/white-space/


Article Tags :