Get links in alerts with Bootstrap


Use the .alert-link utility class to get matching colored links within any alert.

You can try to run the following code to get links in alerts with Bootstrap. Let us set it for success and info −

Example

Live Demo

<!DOCTYPE html>
<html>
   <head>
      <title>Bootstrap Example</title>
      <link href = "/bootstrap/css/bootstrap.min.css" rel = "stylesheet">
      <script src = "/scripts/jquery.min.js"></script>
      <script src = "/bootstrap/js/bootstrap.min.js"></script>
   </head>
   <body>
      <div class = "alert alert-success">
         <a href = "#" class = "alert-link">Success! Well done its submitted.</a>
      </div>
      <div class = "alert alert-info">
         <a href = "#" class = "alert-link">Information!</a>
      </div>
   </body>
</html>

Updated on: 12-Jun-2020

218 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements