Open In App

Foundation CSS Callout

Last Updated : 09 Feb, 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 to 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 callouts combine panels and alerts from Foundation 5 into one generic container component. In a callout, the content renders as a pop-up over all other content and usually contains text data. Foundation CSS uses callout class in the <div> element to create callouts.

Syntax:  

<div class="callout">contents...</div>

Example 1: This example demonstrates the basic callout made using Foundation CSS.

HTML




<!DOCTYPE html>
<html lang="en">
  
<head>
    <title>Foundation CSS Callout</title>
  
    <!-- Compressed CSS -->
    <link rel="stylesheet" href=
        crossorigin="anonymous">
  
    <!-- Compressed JavaScript -->
    <script src=
        crossorigin="anonymous"></script>
</head>
  
<body style="padding:30px;">
    <center>
        <h1 style="color:green;">
            GeeksforGeeks
        </h1>
        <strong>Foundation CSS Callout</strong><br/><br/>
    </center>
    <div class="callout">
        This is a basic callout.<br/>
        This is made using the Foundation CSS.........
    </div>     
</body>
</html>


Output:

Example 2: This example demonstrates the callout with a heading, description, image, and link using Foundation CSS.

HTML




<!DOCTYPE html>
<html lang="en">
  
<head>
    <title>Foundation CSS Callout</title>
  
    <!-- Compressed CSS -->
    <link rel="stylesheet" href=
        crossorigin="anonymous">
  
    <!-- Compressed JavaScript -->
    <script src=
        crossorigin="anonymous"></script>
</head>
  
<body style="padding:30px;">
    <center>
        <h1 style="color:green;">
            GeeksforGeeks
        </h1>
        <strong>Foundation CSS Callout</strong><br/><br/>
    </center>
    <div class="callout">
        <h3>Topic </h3>
          
        <p>
            Description Text should be put here.<br/>
            And this could be any number of lines.
        </p>
  
        <img src=
        <a href=
"https://www.geeksforgeeks.org/">Click here to got to Geeksforgeeks.
        </a>
    </div>     
</body>
</html>


Output:

Reference link: https://get.foundation/sites/docs/callout.html



Like Article
Suggest improvement
Previous
Next
Share your thoughts in the comments

Similar Reads