1.

Is a Bootstrap Well a container?

Answer»

Yes, a BOOTSTRAP Well is a container. It is a container in <div&GT; through which the content appears sunken. As you can see below a basic container is Create a Bootstrap Well: 

<div CLASS = "well">    This is my well! </div>

We will now implement the above in a web page:

<!DOCTYPE html> <html lang="EN"> <head>   <title>Bootstrap Example</title>   <meta charset="utf-8">   <meta name="viewport" content="width=device-width, initial-scale=1">   <link rel="stylesheet" href="HTTPS://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">   <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>   <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script> </head> <body> <div class="container">   <h2>Learning about Wells in Bootstrap</h2>   <div class = "well">    This is my well!   </div> </div> </body> </html>

Above creates the following well:

The size of Well can also be changed in Bootstrap using well-sm and well-lg classes. Here, we are implementing them:

<!DOCTYPE html> <html lang="en"> <head>   <title>Bootstrap Well Example</title>   <meta charset="utf-8">   <meta name="viewport" content="width=device-width, initial-scale=1">   <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">   <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>   <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script> </head> <body> <div class="container">   <h2>Learning about Wells in Bootstrap</h2>   <div class = "well well-sm">    This is my well! Smaller!   </div>   <div class = "well">    This is my well! Medium!   </div>   <div class = "well well-lg">    This is my well! Large!   </div> </div> </body> </html>

Here is the output:



Discussion

No Comment Found