html - Bootstrap 3 Container Fill Left and Right space -


i trying create centered container using bootstraps container class, , left , right of have 2 separate divs fill remainder of white space.

i tried alot things, busy trying create using columns now. no luck.

only thing is, container needs have max width of 960px

here's jsfiddle

and code far:

html:

<div>     <div class="col-md-1 pull-left" style="background: #000099;">left</div>     <div class="container" style="background: #002500">contain</div>     <div class="col-md-1 pull-right" style="background: #005580">right</div> </div> 

any appreciated.

since bootstrap grid has 12 colums, more this..

<div>     <div class="col-md-1" style="background: #000099;">left</div>     <div class="col-md-10" style="background: #002500">contain</div>     <div class="col-md-1" style="background: #005580">right</div> </div> 

demo: http://bootply.com/129827

edit - 960px width container, add special class ie; container-960 this..

.container-960 {     max-width: 960px; } 

i updated demo: http://bootply.com/129827


Comments

Popular posts from this blog

windows - Single EXE to Install Python Standalone Executable for Easy Distribution -

c# - Access objects in UserControl from MainWindow in WPF -

javascript - How to name a jQuery function to make a browser's back button work? -