Skip to content
geeksforgeeks
  • Tutorials
    • Python
    • Java
    • Data Structures & Algorithms
    • ML & Data Science
    • Interview Corner
    • Programming Languages
    • Web Development
    • CS Subjects
    • DevOps And Linux
    • School Learning
    • Practice Coding Problems
  • Courses
    • DSA to Development
    • Get IBM Certification
    • Newly Launched!
      • Master Django Framework
      • Become AWS Certified
    • For Working Professionals
      • Interview 101: DSA & System Design
      • Data Science Training Program
      • JAVA Backend Development (Live)
      • DevOps Engineering (LIVE)
      • Data Structures & Algorithms in Python
    • For Students
      • Placement Preparation Course
      • Data Science (Live)
      • Data Structure & Algorithm-Self Paced (C++/JAVA)
      • Master Competitive Programming (Live)
      • Full Stack Development with React & Node JS (Live)
    • Full Stack Development
    • Data Science Program
    • All Courses
  • BS5 Tutorial
  • BS5 Interview Questions
  • BS5 Layout
  • BS5 Content
  • BS5 Components
  • BS5 Helpers
  • BS5 Utilities
  • BS4 Tutorial
  • BS Tutorial
  • Bootstrap Cheatsheet
  • Tailwind
  • CSS Frameworks
  • HTML Formatter
Open In App
Next Article:
How to get circular buttons in bootstrap 4 ?
Next article icon

How to get circular buttons in bootstrap 4 ?

Last Updated : 08 Jul, 2019
Comments
Improve
Suggest changes
Like Article
Like
Report
It is an open source toolkit for developing with the HTML, CSS, and JS. It includes several types of buttons, styles, fonts each of them serving its own semantic purpose which is predefined, with a few extras thrown for more control. You can use Bootstrap custom button styles to create your buttons and more with support for multiple sizes, states, and more. Bootstrap does not provide any circular buttons by default. If we want to include circular buttons in a web page then with the help of Bootstrap 4 and a little bit of CSS, you can create your own circular buttons for your web page or application. Example: html
<!DOCTYPE html> <html>  <head>     <title>         How to get circular buttons         in bootstrap 4 ?     </title>          <meta charset="utf-8">           <meta name="viewport" content="width=device-width, initial-scale=1">           <link rel="stylesheet" href=  "https://maxcdn.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css">             <script src=  "https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js">      </script>             <script src=  "https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js">      </script>             <script src=  "https://maxcdn.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js">      </script>           <style type="text/css">         h1 {             color:green;         }         .xyz {             background-size: auto;             text-align: center;             padding-top: 100px;         }         .btn-circle.btn-sm {             width: 30px;             height: 30px;             padding: 6px 0px;             border-radius: 15px;             font-size: 8px;             text-align: center;         }         .btn-circle.btn-md {             width: 50px;             height: 50px;             padding: 7px 10px;             border-radius: 25px;             font-size: 10px;             text-align: center;         }         .btn-circle.btn-xl {             width: 70px;             height: 70px;             padding: 10px 16px;             border-radius: 35px;             font-size: 12px;             text-align: center;         }     </style> </head>  <body class="xyz">     <h1>GeeksforGeeks</h1>          <h4>Normal Circle Buttons</h4>     <button type="button" class="btn btn-primary btn-circle btn-sm">Blue</button>     <button type="button" class="btn btn-secondary btn-circle btn-sm">Gray</button>     <button type="button" class="btn btn-success btn-circle btn-sm">Green</button>     <button type="button" class="btn btn-danger btn-circle btn-sm">Red</button>     <button type="button" class="btn btn-warning btn-circle btn-sm">Yellow</button>     <button type="button" class="btn btn-light btn-circle btn-sm">White</button>     <button type="button" class="btn btn-dark btn-circle btn-sm">Black</button>      <h4>Large Circle Buttons</h4>     <button type="button" class="btn btn-primary btn-circle btn-xl">Blue</button>     <button type="button" class="btn btn-secondary btn-circle btn-xl">Gray</button>     <button type="button" class="btn btn-success btn-circle btn-xl">Green</button>     <button type="button" class="btn btn-danger btn-circle btn-xl">Red</button>     <button type="button" class="btn btn-warning btn-circle btn-xl">Yellow</button>     <button type="button" class="btn btn-light btn-circle btn-xl">White</button>     <button type="button" class="btn btn-dark btn-circle btn-xl">Black</button> </body>  </html>                     
Output:With the help of the following code we can easily add circular buttons using Bootstrap 4. Following is an image of the various kinds of circular buttons obtained.

Next Article
How to get circular buttons in bootstrap 4 ?

C

Choco_Chips
Improve
Article Tags :
  • Web Technologies
  • CSS
  • Bootstrap
  • Bootstrap-4

Similar Reads

    How to Create "Add to cart" Button in Bootstrap?
    Creating an "Add to Cart" button in Bootstrap is simple and helps improve the shopping experience on your website. Bootstrap has ready-made styles that make it easy to create buttons that look good and work well on all devices.Approach to creating an "Add to cart" Button in BootstrapUse a Bootstrap
    2 min read
    How to Change Button Color in Bootstrap 5 ?
    Bootstrap 5 provides developers with a lot of capabilities that enable them to create responsive and aesthetically pleasing online apps. Developers frequently require customizations, such as altering button colors to better reflect their branding or design philosophies. This post will walk you throu
    2 min read
    How to align buttons in Card footer in Bootstrap ?
    Alignment of buttons in the Card footer is so much easy when you are familiar with the float element. There is another way to align the left or right wherever you want to place the button in the footer of the card. In this article, you will learn how to align buttons in the footer section of a Boots
    2 min read
    How to create an outline button in Bootstrap 4 ?
    Before performing with outline classes of bootstrap just know about a little bit of button outline. An outline on buttons means to give an outline around the buttons. This '.btn-outline' class removes all background colors or styles from the button for giving the Effective, lighter, and highlighter
    4 min read
    How to create block level buttons in Bootstrap ?
    In many websites, we notice that there are big block level buttons used to perform some work when the user clicks on them. This is used to trigger some functions or redirect the user to a different link. Block buttons are the responsive stack of buttons of full width. We will use the below approach
    2 min read
geeksforgeeks-footer-logo
Corporate & Communications Address:
A-143, 7th Floor, Sovereign Corporate Tower, Sector- 136, Noida, Uttar Pradesh (201305)
Registered Address:
K 061, Tower K, Gulshan Vivante Apartment, Sector 137, Noida, Gautam Buddh Nagar, Uttar Pradesh, 201305
GFG App on Play Store GFG App on App Store
Advertise with us
  • Company
  • About Us
  • Legal
  • Privacy Policy
  • In Media
  • Contact Us
  • Advertise with us
  • GFG Corporate Solution
  • Placement Training Program
  • Languages
  • Python
  • Java
  • C++
  • PHP
  • GoLang
  • SQL
  • R Language
  • Android Tutorial
  • Tutorials Archive
  • DSA
  • Data Structures
  • Algorithms
  • DSA for Beginners
  • Basic DSA Problems
  • DSA Roadmap
  • Top 100 DSA Interview Problems
  • DSA Roadmap by Sandeep Jain
  • All Cheat Sheets
  • Data Science & ML
  • Data Science With Python
  • Data Science For Beginner
  • Machine Learning
  • ML Maths
  • Data Visualisation
  • Pandas
  • NumPy
  • NLP
  • Deep Learning
  • Web Technologies
  • HTML
  • CSS
  • JavaScript
  • TypeScript
  • ReactJS
  • NextJS
  • Bootstrap
  • Web Design
  • Python Tutorial
  • Python Programming Examples
  • Python Projects
  • Python Tkinter
  • Python Web Scraping
  • OpenCV Tutorial
  • Python Interview Question
  • Django
  • Computer Science
  • Operating Systems
  • Computer Network
  • Database Management System
  • Software Engineering
  • Digital Logic Design
  • Engineering Maths
  • Software Development
  • Software Testing
  • DevOps
  • Git
  • Linux
  • AWS
  • Docker
  • Kubernetes
  • Azure
  • GCP
  • DevOps Roadmap
  • System Design
  • High Level Design
  • Low Level Design
  • UML Diagrams
  • Interview Guide
  • Design Patterns
  • OOAD
  • System Design Bootcamp
  • Interview Questions
  • Inteview Preparation
  • Competitive Programming
  • Top DS or Algo for CP
  • Company-Wise Recruitment Process
  • Company-Wise Preparation
  • Aptitude Preparation
  • Puzzles
  • School Subjects
  • Mathematics
  • Physics
  • Chemistry
  • Biology
  • Social Science
  • English Grammar
  • Commerce
  • World GK
  • GeeksforGeeks Videos
  • DSA
  • Python
  • Java
  • C++
  • Web Development
  • Data Science
  • CS Subjects
@GeeksforGeeks, Sanchhaya Education Private Limited, All rights reserved
We use cookies to ensure you have the best browsing experience on our website. By using our site, you acknowledge that you have read and understood our Cookie Policy & Privacy Policy
Lightbox
Improvement
Suggest Changes
Help us improve. Share your suggestions to enhance the article. Contribute your expertise and make a difference in the GeeksforGeeks portal.
geeksforgeeks-suggest-icon
Create Improvement
Enhance the article with your expertise. Contribute to the GeeksforGeeks community and help create better learning resources for all.
geeksforgeeks-improvement-icon
Suggest Changes
min 4 words, max Words Limit:1000

Thank You!

Your suggestions are valuable to us.

What kind of Experience do you want to share?

Interview Experiences
Admission Experiences
Career Journeys
Work Experiences
Campus Experiences
Competitive Exam Experiences