Foundation CSS Callout
Last Updated :
09 Feb, 2022
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 >
< link rel = "stylesheet" href =
crossorigin = "anonymous" >
< 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 >
< link rel = "stylesheet" href =
crossorigin = "anonymous" >
< 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 =
</ a >
</ div >
</ body >
</ html >
|
Output:
Reference link: https://get.foundation/sites/docs/callout.html
Like Article
Suggest improvement
Share your thoughts in the comments
Please Login to comment...