Style Bootstrap card with bg-info class

BootstrapWeb DevelopmentCSS Framework

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

Let us see an example to learn how to implement Bootstrap 4 bg-info class with the card class −


Live Demo

<!DOCTYPE html>
<html lang="en">
    <title>Bootstrap Example</title>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link rel="stylesheet" href="">
    <script src=""></script>
    <script src=""></script>
  <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>
Updated on 18-Jun-2020 11:51:42