Get links in alerts with Bootstrap

BootstrapWeb DevelopmentCSS Framework

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>
raja
Published on 21-Jun-2018 07:13:12
Advertisements