Friday, March 13, 2015

Button in Bootstrap

Anything that is given a class of ".btn" refers to a button and gets displayed as grey button with rounded or curved edges in Bootstrap . There are also options to customize the buttons and make them on according to your preferences in Bootstrap.

Example:

 <!DOCTYPE html>  
 <html>  
 <head lang="en">  
   <meta charset="UTF-8"/>  
   <title>nirajanghimirey's workshop</title>  
   <meta name="viewport" content="width=device-width, initial-scale=1"/>  
   <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.1/css/bootstrap.min.css"/>  
 </head>  
 <body>  
 <div class="container">  
 <a class="btn btn-link" href="http://nirajanghimireyworkshop.blogspot.com" role="button">Link</a> &nbsp;  
 <button class="btn btn-info" type="submit">Info</button>&nbsp;  
 <input class="btn btn-submit" type="submit" value="Submit">&nbsp;  
 <input class="btn btn-success" type="button" value="Success">&nbsp;  
 <input class="btn btn-primary" type="button" value="Primary">&nbsp;  
 <input class="btn btn-danger" type="button" value="Danger">&nbsp;  
 </div>  
 <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>  
 <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.1/js/bootstrap.min.js"></script>  
 </body>  
 </html>

No comments:

Post a Comment