I have a bootstrap card using the following code:
<div class="card card-outline-danger text-center">
<span class="pull-right clickable" data-effect="fadeOut"><i class="fa fa-times"></i></span>
<div class="card-block">
<blockquote class="card-blockquote">
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.</p>
<footer>Someone famous in <cite title="Source Title">Source Title</cite></footer>
</blockquote>
</div>
</div>
I am using the following code to get my close button working:
<span class="pull-right clickable" data-effect="fadeOut"><i class="fa fa-times"></i></span>
The close button is not working and I am new to bootstrap. Therefore, I need some help.
This isn't a standard feature of bootstrap, so you need to bind a JS click event to the icon, and trigger it to close the parent
.card
. I also addedcursor: pointer
to the icon so that it looks like something you can click on.