Skip to content
Related Articles

Related Articles

Improve Article
Save Article
Like Article

How to make bootstrap button transparent ?

  • Last Updated : 22 Apr, 2020

Buttons can be made transparent in Bootstrap by using the built-in class property:


<button class="btn bg-transparent">
    Transparent button


  • The <button> tag is used to specify the button element in HTML, which gets executed on pressed.
  • Generally, the properties of bootstrap must be mentioned in class. Example: class=” “
  • Inside the class=” ”
    btn – On mentioning the btn property, specifies that its a bootstrap button.
    bg – Specifies the background color of the button.
    transparent – Makes the button transparent.

How to use it:
Make sure, you have included the bootstrap code (Starter Template) in your code.


<!doctype html>
<html lang="en">
    <!-- Required meta tags -->
    <meta charset="utf-8">
    <meta name="viewport" 
    <!-- Bootstrap CSS -->
    <link rel="stylesheet" 
    <title>Hello, world!</title>
    <button class="btn bg-transparent">
        Transparent button
    <!-- Optional JavaScript -->
    <!-- jQuery first, then Popper.js, then Bootstrap JS -->
    <script src=
    <script src=

Before Pressing:

After pressing:

The documentation of Bootstrap is well-structured and easy to understand.
Reference: Official Documentation

My Personal Notes arrow_drop_up
Recommended Articles
Page :

Start Your Coding Journey Now!