Bootstrap Wells

Learn via video courses
Topics Covered

Overview

A Well in Bootstrap is utilized for design and aesthetic purposes on the website. Its primary function is to create a rounded border around web page content. Additionally, it provides bordered content with a grey background and default padding. Because of this, the webpage content appears organized and useful. It is simple to use and cuts down on the developer's HTML and CSS code.

Transform Your Career

Choose from our industry-leading programs designed for career success

NSDC Certified

Modern Software and AI Engineering Program

Master full-stack development with AI integration

12 MonthsDuration
AI-LedCurriculum
Career SupportSupport
GoogleAmazonPaytm+1000 more
Go to Program
NSDC Certified

Modern Data Science and ML with specialisation in AI

Advanced data science techniques with AI specialization

12 MonthsDuration
AI-LedCurriculum
Career SupportSupport
GoogleAmazonPaytm+1000 more
Go to Program
NSDC Certified

Advanced AIML with Specialisation in Agentic AI

Deep dive into AIML with focus on Agentic systems

12 MonthsDuration
AI-LedCurriculum
Career SupportSupport
GoogleAmazonPaytm+1000 more
Go to Program
NSDC Certified

DevOps, Cloud & AI Platform Engineering

Build and manage AI-powered cloud infrastructure

12 MonthsDuration
AI-LedCurriculum
Career SupportSupport
GoogleAmazonPaytm+1000 more
Go to Program
NSDC Certified

AI Engineering Advanced Certification by IIT-Roorkee

Premier AI engineering certification from IIT-Roorkee

3 MonthsDuration
AI-LedCurriculum
Career SupportSupport
Program highlights
Go to Program

Pre-requisite

The prerequisites are basic knowledge of HTML, CSS, and Bootstrap.

Introduction to Bootstrap Wells

A well in Bootstrap resembles a bootstrap panel but has padding and rounded borders. The purpose of this is to draw attention to specific website content. The .well class adds a rounded border with a gray background and some padding around the element. However, CSS can be used to alter the padding and color of the text. To create a well, all you need to do is wrap the content that you want to appear in the well in a <div> with the class of .well. A default well is displayed in the example below.

Basic Well example

The following code illustrates a basic bootstrap well. Code:

Output: well example

Bootstrap Wells Size

Wells in Bootstrap can be created in different sizes. They are small, medium(default size), and large. Let us understand the well sizes with the help of examples.

Free Courses by top Scaler instructors
Python Course for Beginners With Certification: Mastering the Essentials
Java Course - Mastering the Fundamentals
DBMS Course - Master the Fundamentals and Advanced Concepts
JavaScript Course With Certification: Unlocking the Power of JavaScript
C++ Course: Learn the Essentials
Python and SQL for Data Science Course
Python Course for Beginners With Certification: Mastering the Essentials
Java Course - Mastering the Fundamentals
DBMS Course - Master the Fundamentals and Advanced Concepts
JavaScript Course With Certification: Unlocking the Power of JavaScript
C++ Course: Learn the Essentials
Python and SQL for Data Science Course

Small Well

The .well-sm after .well class is used to create a small-sized well. The following example illustrates small well: Code:

Output: Small Well

Scaler Placement Report and Statistics

₹23L
AVG CTC
SCALER PLACEMENT PROOF

Scaler learners achieved 2.5x salary growth with average post-Scaler CTC reaching ₹23L.

11,000+placements
650+companies
Verified data
Hiring Partners:
GoogleGoogleAmazonAmazonMicrosoftMicrosoftFlipkartFlipkartAdobeAdobe1200+ more

Large Well

The .well-lg after .well class is used to create a large-sized well. The following example illustrates a large well:

Code:

Output Large Well

How Does Bootstrap Wells Work?

We can create a well in bootstrap in two ways:

  • By using the Bootstrap .well class. Bootstrap's .well class allows us to design borders, padding, and gray background color.

Code:

Output: How does Bootstrap Wells Work

  • Using CSS and .design class in HTML. We may design a border, padding, and a grey background color in bootstrap without the .well class. In HTML, we are using the .design class and CSS styles. Borders, border-radius, background colors, and padding elements all require sizes in CSS. The .well class in bootstrap eliminates any additional coding and makes the web application look more nice.

Code:

Output: Using CSS and design class in HTML

Examples

Following are some examples of Bootstrap Well.

Turn Learning into Career Growth

1200+Hiring Partners
89%Placement Rate
11,000+Placements
147%Avg Salary Increment
2.5XCareer Growth
₹23 LPAAvg Post-Scaler Salary
1200+Hiring Partners
89%Placement Rate
11,000+Placements
147%Avg Salary Increment
2.5XCareer Growth
₹23 LPAAvg Post-Scaler Salary

Design Border, Padding and Grey Background Colour

Bootstrap's .well class allows us to build border, padding, and grey background color. The following code illustrates the same:

Code:

Output: Design border padding and grey background-colour

How to Work Well in Class With Table Class

We can use wells with the bootstrap table. The border and space between each row and column of the table are controlled by the .well class. The following example illustrates a basic table with wells in bootstrap:

Code:

Output: How to work well in class with table class

.well Class and Form in Bootstrap

The .well class gives perfect spacing and anborderser for the form element. The following example illustrates basic form with wells in bootstrap:

Code:

Output: well class and form in bootstrap

Supported Browsers

Browsers that support wells in bootstrap are all the major softwares out there. That is:

  • Google Chrome
  • Internet Explorer
  • Firefox
  • Opera
  • Safari
ChromeFirefoxInternet ExplorerMicrosoft EdgeOperaSafari
MacSupportedSupportedN/AN/ASupportedSupported
WindowsSupportedSupportedSupported IE 10+SupportedSupportedNot Supported

Conclusion

  • Bootstrap well classes are applied for the rounded border with appropriate padding between content and border.
  • Bootstrap well classes provide a grey background colour for web application content. This makes online applications appear professional, attractive, and user-friendly.
  • Bootstrap well classes are created by using the .well class of bootstrap.
  • Bootstrap well classes in Bootstrap come in different sizes. They are small, medium(default size) and large.
  • Bootstrap Well classes are supported by all the major browsers.