0 votes
137 views
in HTML by (3.5k points)
edited
How can one create an alert in Bootstrap?

1 Answer

0 votes
by (3.5k points)
edited by

 

In Bootstrap 4, a card is a bordered box with padding surrounding its content. It has options for headers, footers, content, and colors, among other things.

<div class="card">
 <div class="card-header">Header</div>
 <div class="card-body">Body</div>
 <div class="card-footer">Footer</div>
</div>

Another example:

<div class="card" style="width:400px">
 <img class="card-img-top" src="img_avatar.png" alt="Card image">
 <div class="card-body">
   <h4 class="card-title">Richard Taylor</h4>
   <p class="card-text">Some example text.</p>
   <a href="#" class="btn btn-primary">See Profile</a>
 </div>
</div>

 

Related questions

0 votes
1 answer 110 views
0 votes
1 answer 98 views
asked Aug 21, 2022 in HTML by codelikepro (3.5k points)
0 votes
1 answer 140 views
0 votes
1 answer 97 views
asked Aug 21, 2022 in HTML by codelikepro (3.5k points)
0 votes
1 answer 103 views

Doubtly is an online community for engineering students, offering:

  • Free viva questions PDFs
  • Previous year question papers (PYQs)
  • Academic doubt solutions
  • Expert-guided solutions

Get the pro version for free by logging in!

5.7k questions

5.1k answers

108 comments

561 users

...