Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Margins and Paddings | Basic Concepts
Bootstrap: Building Stylish Websites
course content

Course Content

Bootstrap: Building Stylish Websites

Bootstrap: Building Stylish Websites

1. Understanding Bootstrap
2. Setting Up Environment
3. Basic Concepts
4. Advanced Concepts
5. Creating a Portfolio Website with Bootstrap

Margins and Paddings

Margins

Margins in CSS control the space between elements and the outer edges of their containers. In Bootstrap, margins can be easily adjusted using utility classes, eliminating the need for custom CSS.

Margin Classes

Bootstrap provides a set of margin utility classes following a consistent naming convention:

{side} can be:

{size} can be:

html

index

css

index

js

index

copy

Paddings

Paddings in CSS determine the space between the content of an element and its borders. In Bootstrap, developers can easily control padding using utility classes, which helps maintain consistent spacing throughout the layout without needing custom CSS.

Padding Classes

Bootstrap provides a set of padding utility classes following a consistent naming convention:

The variations for {side} and {size} are identical to those for margin.

html

index

css

index

js

index

copy

Everything was clear?

Section 3. Chapter 6
We're sorry to hear that something went wrong. What happened?
some-alt