Program 4
Program 4
0
framework classes for Borders, Margins and Paddings.
<!DOCTYPE html>
<html>
<head>
<link href=
"https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css"
rel="stylesheet">
</head>
<body>
</div>
<div class="container">
</h1>
</body>
</html>
Centered element
</div>
</html>
Explanation
Spacing
Bootstrap includes a wide range of shorthand responsive margin and padding utility
classes to modify an element’s appearance.
Assign responsive-friendly margin or padding values to an element or a subset of its sides with
shorthand classes. Includes support for individual properties, all properties, and vertical and
horizontal properties. Classes are built from a default Sass map ranging from .25rem to 3rem.
Spacing utilities that apply to all breakpoints, from xs to xl, have no breakpoint abbreviation
in them. This is because those classes are applied from min-width: 0 and up, and thus are not
bound by a media query. The remaining breakpoints, however, do include a breakpoint
abbreviation.
The classes are named using the format {property}{sides}-{size} for xs and {property}{sides}-
{breakpoint}-{size} for sm, md, lg, and xl.