Open In App

Foundation CSS Prototyping Utilities Display Classes

Foundation CSS is an open-source and responsive front-end framework built by ZURB foundation in September 2011, that makes it easy to layout stunning responsive websites, apps, and emails that appear amazing and can be accessible to any device. In this article, we will discuss the Prototyping Utilities Display Classes in Foundation CSS.

In Foundation CSS, Prototyping Utilities Display Classes are used to alter the display property of any element.



Foundation CSS Prototyping Utilities Display Classes:

Syntax:



<div class="Display-Classes">
     ...
</div>

Example 1: Below is the example that illustrates the use of the Prototyping Utilities display-inline class.




<!DOCTYPE html>
<html>
  
<head>
  <title>Foundation CSS Prototyping Utilities Display-Inline</title>
  <link rel="stylesheet"
        href=
        crossorigin="anonymous">
  <link rel="stylesheet"
        href=
        crossorigin="anonymous">
  <link rel="stylesheet"
        href=
        crossorigin="anonymous">
</head>
  
<body>
  <center>
    <h2>GeeksforGeeks</h2>
  
    <h3>Prototyping Utilities Display-Inline</h3>
  
    <div class="button primary display-inline">
      GeeksforGeeks-1
    </div>
      
    <div class="button success display-inline">
      GeeksforGeeks-2
    </div>
  </center>
</body>
  
</html>

Output:

Foundation CSS Prototyping Utilities Display Classes

Example 2: Below is the example that illustrates the use of the Prototyping Utilities display-block class.




<!DOCTYPE html>
<html>
  
<head>
  <title>Foundation CSS Prototyping Utilities Display-Inline</title>
  <link rel="stylesheet"
        href=
        crossorigin="anonymous">
  <link rel="stylesheet"
        href=
        crossorigin="anonymous">
  <link rel="stylesheet"
        href=
        crossorigin="anonymous">
</head>
  
<body style="margin-inline: 10rem;">
  <center>
    <h2>GeeksforGeeks</h2>
  
    <h3>Prototyping Utilities Display-block</h3>
  
    <div class="button primary display-block">
      GeeksforGeeks-1
    </div>
      
    <div class="button success display-block">
      GeeksforGeeks-2
    </div>
  </center>
</body>
  
</html>

Output:

Foundation CSS Prototyping Utilities Display Classes

Reference: https://get.foundation/sites/docs/prototyping-utilities.html#display-classes 


Article Tags :