Wrap a page's content with Bootstrap


To wrap a page's content, use the .container class, 

<div class = "container">
...
</div>

The following is the .container class in bootstrap.css file: 

.container{
    padding-right: 20px;
    padding-left: 20px;
    margin-right: auto;
    margin-left: auto;
}

Updated on: 12-Jun-2020

350 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements