- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Physics
Chemistry
Biology
Mathematics
English
Economics
Psychology
Social Studies
Fashion Studies
Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Style Bootstrap card with bg-info class
Use the bg-info class with the card-class in Bootstrap 4 to add information in a card −
<div class="card bg-info text-white">
Now include the card-body class in it −
<div class="card bg-info text-white"> <div class="card-body"> Bring your Laptop for the BootCamp </div> </div>
Let us see an example to learn how to implement Bootstrap 4 bg-info class with the card class −
Example
<!DOCTYPE html> <html lang="en"> <head> <title>Bootstrap Example</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.1.0/css/bootstrap.min.css"> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script> <script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.1.0/js/bootstrap.min.js"></script> </head> <body> <div class="container"> <h3>Information - Event</h3> <div class="card bg-info text-white"> <div class="card-body">Bring your Laptop for the BootCamp</div> </div> </div> </body> </html>
- Related Articles
- Style Bootstrap 4 card with bg-primary class
- Style Bootstrap 4 card with bg-warning class
- Style Bootstrap 4 card with bg-success class
- Bootstrap 4 card styled with bg-secondary class
- Style Bootstrap 4 cards with bg-danger class
- Style Bootstrap 4 cards with bg-dark class
- Bootstrap .btn-info class
- Bootstrap alert-info class
- Bootstrap .card class
- bg-light class for Bootstrap 4 cards
- Usage of Bootstrap class panel-info
- border-info class in Bootstrap 4
- Connect SD Card with Arduino and get Card Info
- Bootstrap 4 Button .btn-outline-info class
- Bootstrap 4 .card-text class

Advertisements