content logo

Bootstrap Cards:

Simple Bootstrap Card with Buttons

Most advanced websites use different elements to improve and gain more visitors. If you own a website, you should use several factors to interest your audiences. This post contains the Simple Bootstrap Card with Buttons and you can achieve the same purpose. The Simple Bootstrap Card is that needed element and you can use it to attract people. By using this code, you can improve your website and be successful in a short time. So, look at this HTML Card Code and use it on your page in order to progress.

We have placed the preview of this code below. As the preview represents, this Pure CSS Card has a simple theme. The background of this code is totally white and you can use it on your website if its design is simple. All writings of this Bootstrap Card with Buttons are gray. There is no title at the top of the page, but the main title has a larger font at the beginning of the text. These texts have a thin border. This has two buttons at the end of the page with two small borders. As you move the mouse on a button, its text color changes to blue. After clicking on this field, its border turns blue.

#

Simple Bootstrap Card

#

HTML Card Code

#

Pure CSS Card

#

Bootstrap Card with Buttons

<!-- This script got from frontendfreecode.com -->
<div class="container-fluid container-fluid-max-xl mt-5">
    <div class="row">
        <div class="col"></div>
        <div class="col">
            <div class="card card-topic">
                <div class="card-body">
                    <h3 class="card-title">Card title</h3>
                    <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua Egestas purus viverra accumsan in nisl nisi Arcu cursus vitae congue mauris rhoncus aenean vel elit scelerisque </p>
                </div>
                <div class="card-footer">
                    <div class="row">
                        <div class="col-6 pr-0">
                            <button class="btn btn-link btn-block">Topics</button>
                        </div>
                        <div class="col-6 pl-0">
                            <button class="btn btn-link btn-block">Service</button>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <div class="col"></div>
    </div>
</div><a style="font-size: 8pt; text-decoration: none" target="_blank" href="http://frontendfreecode.com">Free Frontend</a>
                                                                            
.card-topic {
  font-size: 13px;
  line-height: 20px;
  border: 1px solid #d7d7d7;
  border-radius: 3px;
  box-shadow: none;
}
.card-topic .card-body {
  padding: 25px;
}
.card-topic .card-body .card-title {
  font-weight: 600;
  font-size: 16px;
  line-height: 20px;
  margin-bottom: 8px;
}
.card-topic .card-body p {
  font-weight: normal;
  font-size: 14px;
  line-height: 20px;
}
.card-topic .card-body p:last-child {
  margin-bottom: 0;
}
.card-topic .card-footer {
  background: #f6f6f6;
  border-top: 1px solid #d7d7d7;
  padding: 0;
  text-align: center;
  border-bottom-left-radius: 3px;
  border-bottom-right-radius: 3px;
}
.card-topic .card-footer .col-6:first-child {
  border-right: 1px solid #d7d7d7;
  padding-right: 0;
}
.card-topic .card-footer .col-6:first-child .btn-link {
  border-bottom-left-radius: 3px;
}
.card-topic .card-footer .col-6:last-child {
  padding-left: 0;
}
.card-topic .card-footer .col-6:last-child .btn-link {
  border-bottom-right-radius: 3px;
}
.card-topic .card-footer .btn-link {
  background: #f6f6f6;
  width: 100%;
  padding: 10px;
  font-size: 13px;
  line-height: 20px;
  color: #505050;
  font-weight: 600;
  text-decoration: none;
}
.card-topic .card-footer .btn-link:hover, .card-topic .card-footer .btn-link:focus {
  background: #f1f1f1;
  color: #00748b;
}
<link rel='stylesheet' href='https://cdn.jsdelivr.net/npm/@clayui/css@3.0.0/lib/css/atlas.css'>
<script src='https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js'></script>
<script src='https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.15.0/popper.min.js'></script>
<script src='https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.3.1/js/bootstrap.min.js'></script>
<script src='https://cdn.jsdelivr.net/npm/clay/lib/js/clay.js'></script>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<!-- This script got from frontendfreecode.com -->

<link rel='stylesheet' href='https://cdn.jsdelivr.net/npm/@clayui/css@3.0.0/lib/css/atlas.css'>
<script src='https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js'></script>
<script src='https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.15.0/popper.min.js'></script>
<script src='https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.3.1/js/bootstrap.min.js'></script>
<script src='https://cdn.jsdelivr.net/npm/clay/lib/js/clay.js'></script>
<style>
.card-topic {
  font-size: 13px;
  line-height: 20px;
  border: 1px solid #d7d7d7;
  border-radius: 3px;
  box-shadow: none;
}
.card-topic .card-body {
  padding: 25px;
}
.card-topic .card-body .card-title {
  font-weight: 600;
  font-size: 16px;
  line-height: 20px;
  margin-bottom: 8px;
}
.card-topic .card-body p {
  font-weight: normal;
  font-size: 14px;
  line-height: 20px;
}
.card-topic .card-body p:last-child {
  margin-bottom: 0;
}
.card-topic .card-footer {
  background: #f6f6f6;
  border-top: 1px solid #d7d7d7;
  padding: 0;
  text-align: center;
  border-bottom-left-radius: 3px;
  border-bottom-right-radius: 3px;
}
.card-topic .card-footer .col-6:first-child {
  border-right: 1px solid #d7d7d7;
  padding-right: 0;
}
.card-topic .card-footer .col-6:first-child .btn-link {
  border-bottom-left-radius: 3px;
}
.card-topic .card-footer .col-6:last-child {
  padding-left: 0;
}
.card-topic .card-footer .col-6:last-child .btn-link {
  border-bottom-right-radius: 3px;
}
.card-topic .card-footer .btn-link {
  background: #f6f6f6;
  width: 100%;
  padding: 10px;
  font-size: 13px;
  line-height: 20px;
  color: #505050;
  font-weight: 600;
  text-decoration: none;
}
.card-topic .card-footer .btn-link:hover, .card-topic .card-footer .btn-link:focus {
  background: #f1f1f1;
  color: #00748b;
}
</style>

</head>
<body>
<div class="container-fluid container-fluid-max-xl mt-5">
    <div class="row">
        <div class="col"></div>
        <div class="col">
            <div class="card card-topic">
                <div class="card-body">
                    <h3 class="card-title">Card title</h3>
                    <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua Egestas purus viverra accumsan in nisl nisi Arcu cursus vitae congue mauris rhoncus aenean vel elit scelerisque </p>
                </div>
                <div class="card-footer">
                    <div class="row">
                        <div class="col-6 pr-0">
                            <button class="btn btn-link btn-block">Topics</button>
                        </div>
                        <div class="col-6 pl-0">
                            <button class="btn btn-link btn-block">Service</button>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <div class="col"></div>
    </div>
</div><div id="bcl"><a style="font-size:8pt;text-decoration:none;" href="http://www.devanswer.com">Free Frontend</a></div>

</body>
</html>
Preview