Placing a container in a container using bootstrap? -


this seems work fine - wondering if ok this?

why doing this? reason because background color full page width i'd content within padded container.

the code did works - wonder if valid?

<div class="container-fluid" style="background-color:#f5f5f5;color:#494949;">     <div class="row">         <div class="col-sm-12">             <div class="container">                 <div class="row" style="padding-top:50px;padding-bottom:50px;">                     <div class="col-sm-8" style="background-color:yellow;">                         <p>lorem ipsum...</p>                     </div>                     <div class="col-sm-4" style="background-color:pink;">                         <p>sed ut perspiciatis...</p>                     </div>                 </div>             </div>         </div>     </div> </div> 

you should never put container inside of container, read rules , guidelines of bootstrap.

you can https://jsfiddle.net/31kxaml9/

<section style="background-color:#f5f5f5; color:#494949;">   <div class="container">     <div class="row" style="padding-top:50px;padding-bottom:50px;">       <div class="col-sm-8" style="background-color:yellow;">         <p>lorem ipsum...</p>       </div>       <div class="col-sm-4" style="background-color:pink;">         <p>sed ut perspiciatis...</p>       </div>     </div>   </div> </section> 

Comments

Popular posts from this blog

python - Selenium remoteWebDriver (& SauceLabs) Firefox moseMoveTo action exception -

html - How to custom Bootstrap grid height? -

transpose - Maple isnt executing function but prints function term -