Badge Classes in Bootstrap CSS tutorial

 <!DOCTYPE html>

<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, shrink-to-fit=no">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Badge Classes Bootstrap CSS</title>
    <link rel="stylesheet" href="css/bootstrap.css">
    <link rel="stylesheet" href="css/Badge_Classes_Bootstrap_CSS.css">
</head>

<body>
    <!--How to make Website Layout with Bootstrap ?-->
    <!--3 Bootstrap CSS Classes : Container, Row, Col-->
    <!--When use "Col" Class ? Answer: For Equal Width Div Tag-->
    <!--Total width of Grid in Every row is 12-->
    <!--Col Class for different Break Points-->
    <!--Extra Large:col-lg, Large:col-lg, Medium:col-md, Small:col-sm, Extra Small-->
    <!--Total width of Column Grid must be maximum 12 in one Row-->
    <div class="container mb-5">
        <h2 class="py-3 text-center">Bootstrap Badge Classes</h2>
        <div class="row py-5">
            <div class="col">
                <h1>Example Heading <span class="badge text-bg-primary">New</span></h1>
                <h2>Example Heading <span class="badge text-bg-success">New</span></h2>
                <h3>Example Heading <span class="badge rounded-pill text-bg-secondary">New</span></h3>
                <button class="btn btn-primary">Notifications <span class="badge text-bg-light">5</span></button>
                <a href="" class="badge text-bg-info">Read More</a>
                <a href="" class="badge rounded-pill text-bg-danger p-2">Read More</a>
                <p>Lorem, ipsum dolor sit amet consectetur adipisicing elit. Ex ipsam vel libero soluta dolores animi
                    illum in non distinctio!<span class="badge text-bg-warning">Fugit laboriosam quaerat eligendi
                        illo</span> sequi ipsam laudantium harum
                    repellendus, distinctio qui perspiciatis corporis, consequatur sit provident dolorem iure maiores
                    enim pariatur unde, aut non accusamus. Repellat nesciunt delectus quas nulla?</p>
            </div>
        </div>
    </div>
</body>

</html>



Below File is css/Badge_Classes_Bootstrap_CSS.css File
.container {
    border: 5px solid #000000;
}

a {
    text-decoration: none;
}


Comments

Popular posts from this blog

Modal Plugin tutorial in Bootstrap CSS

Progress Bar Classes in Bootstrap CSS tutorial