Open In App

Foundation CSS Button Hollow Style

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 that 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.

Foundation CSS Button Hollow Styles are the button styles to create hollow buttons. To make the hollow button, we will use the .hollow class.

Used Classes:

  • hollow: This class is used to create a button with a hollow style.

Syntax:

  • With anchor tag:
<a class="button hollow" href="#">
    Hollow Button
</a>
  • With button tag:
<button type="button" 
    class="hollow button">
    Hollow Button
</button>

Example 1: In this example, we will use <a> tag and .button class to create a button and use the .hollow class to make a hollow button. 

HTML




<!DOCTYPE html>
<html lang="en">
  
<head>
    <title>Foundation CSS Button Hollow Style</title>
  
    <!-- Compressed CSS -->
    <link rel="stylesheet" href=
        crossorigin="anonymous">
  
    <!-- Compressed JavaScript -->
    <script src=
        crossorigin="anonymous"></script>
</head>
  
<body>
    <center>
        <h1 style="color: green;">
            GeeksforGeeks
        </h1>
  
        <h3>Foundation CSS Button Hollow Style</h3>
  
        <a class="button hollow primary" href="#">
              Hollow Button 1
          </a>
        <a class="button hollow secondary" href="#">
            Hollow Button 2
          </a>
        <a class="button hollow success" href="#">
            Hollow Button 3
          </a>
        <a class="button hollow alert" href="#">
            Hollow Button 4
          </a>
        <a class="button hollow warning" href="#">
            Hollow Button 5
          </a>
    </center>
</body>
  
</html>


Output:

Example 2: In this example, we will use the <button> tag and .button class to create a button and use the .hollow class to make a hollow button. 

HTML




<!DOCTYPE html>
<html lang="en">
  
<head>
    <title>Foundation CSS Button Hollow Style</title>
  
    <!-- Compressed CSS -->
    <link rel="stylesheet" href=
        crossorigin="anonymous">
  
    <!-- Compressed JavaScript -->
    <script src=
        crossorigin="anonymous"></script>
</head>
  
<body>
    <center>
        <h1 style="color: green;">
            GeeksforGeeks
        </h1>
  
        <h3>Foundation CSS Button Hollow Style</h3>
  
        <button type="button" 
            class="button hollow primary">
            Hollow Button 1
        </button>
        <button type="button" 
            class="button hollow secondary">
            Hollow Button 2
        </button>
        <button type="button" 
            class="button hollow success">
            Hollow Button 3
        </button>
        <button type="button" 
            class="button hollow alert">
            Hollow Button 4
        </button>
        <button type="button" 
            class="button hollow warning">
            Hollow Button 5
        </button>
    </center>
</body>
  
</html>


Output:

Reference: https://get.foundation/sites/docs/button.html#hollow-style



Last Updated : 16 Feb, 2022
Like Article
Save Article
Previous
Next
Share your thoughts in the comments
Similar Reads