Skip to main content

Archive

Show more

Foundation CSS Callout

Foundation CSS Callout

Foundation CSS provides a callout component that allows you to highlight important information or messages on your website. Callouts are visually distinct from regular content, making them effective for drawing attention to specific details. Here's how to create a callout using Foundation CSS:


1. HTML Structure

Define the HTML structure for the callout by wrapping the content inside a <div> element with the class callout. You can customize the appearance of the callout by applying additional classes, such as primary, success, warning, or alert to indicate different types of messages.

<div class="callout">
  Your callout content goes here.
</div>

2. Example

Here's an example of a basic callout implemented using Foundation CSS:

<div class="callout">
  This is a standard callout.
</div>

<div class="callout primary">
  This is a primary callout.
</div>

<div class="callout success">
  This is a success callout.
</div>

<div class="callout warning">
  This is a warning callout.
</div>

<div class="callout alert">
  This is an alert callout.
</div>

Conclusion

Foundation CSS callout component provides a simple and effective way to highlight important information on your website. By applying different classes, you can customize the appearance of the callout to convey different types of messages or notifications.

Comments