Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Need to create wider container in Bootstrap - 1920px

I have .psd design for client site, graphic designer drew container width up to 1920px, and I need a help how to properly set up width of container to 1920px.

I know how to set up smaller

@media (min-width: 1200px)
.container {
      width: 1170px;
}
like image 553
Mile Mijatović Avatar asked Nov 19 '15 12:11

Mile Mijatović


1 Answers

Instead of forcing your containers to 1920px and overriding the default bootstrap grid sizes, you may want to look at .container-fluid, which is inside Bootstrap's packaged css.

Containers

Bootstrap requires a containing element to wrap site contents and house our grid system. You may choose one of two containers to use in your projects. Note that, due to padding and more, neither container is nestable.

Use .container for a responsive fixed width container.

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

Use .container-fluid for a full width container, spanning the entire width of your viewport.

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

Link: http://getbootstrap.com/css/#overview-container

like image 72
Kyle Yeo Avatar answered Sep 24 '22 14:09

Kyle Yeo