Bootstrap Well

Bootstrap Well

The bootstrap .well class have rounded corner around the elements, grey background-color and have some padding. This class have different sizes.

Example: 1 Bootstrap Well Example

<!DOCTYPE html>
<html>
<head>
    <title>Bootstrap Well Example</title>
    <!-- link the bootstrap online or through CDN -->
    <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
     
</head>
<body>
	<div class="container">
		<h2>Well example</h2>
		<div class="well">
			Lorem Ipsum
		</div>		
	</div>
</body>
</html>

The above code we use a normer text using <h2> and have text inside the container which have .well class.

Bootstrap 3 Wells
Fig.1 – Bootstrap 3 Well Example.

Sizes Of Wells

The class .well have different sizes. If we want to change the size of the well than we have to use additional class like .well-sm, well-lg.

Example: 2 Bootstrap Well’s Size Example

<!DOCTYPE html>
<html>
<head>
    <title>Bootstrap Well Example</title>
    <!-- link the bootstrap online or through CDN -->
    <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
     
</head>
<body>
	<div class="container">
		<h2>Well Size Example</h2>
		<div class="well">
			Lorem Ipsum
		</div>
		<div class="well well-sm">
			Lorem Ipsum
		</div>		
		<div class="well well-lg">
			Lorem Ipsum
		</div>
	</div>
</body>
</html>

The above code we use a normer text using <h2> and have text inside the container which have classes .well-sm, .well-lg.

Bootstrap 3 Well Examples
Fig.2 – Bootstrap Well Size Example.

Caution: The default size of the well is normal or medium.

You can leave a response, or trackback from your own site.
Leave a Reply to the article

Learning & Certifications
Follow Us
Facebook Icon   Linked In Icon   Twitter Icon  
Validation and Recognition

Valid CSS! Valid HTML5!          Protected by Copyscape