Padding percent in container-fluid in Bootstrap -


i'm try add padding-left , padding-right container-fluid in bootstrap. when reload page, padding work after end of loading page. (u use in project: bootstrap,razor, durandaljs, knockout, asp.net mvc) first page looks this:

enter image description here

then, after 2-3 second, page becoming necessary

enter image description here

code of global page:

<div class="container-fluid"> <div class="row">  </div> <div class="row">     <div class="page-host" id="content-host" data-bind="router: { transition: 'entrance' }"></div> </div> 

this css style:

.page-host { position: relative; left: 0; top:30px; right: 0; bottom: 0; overflow-x: hidden; overflow-y: auto; padding-left: 5% !important; padding-right: 5% !important; 

} how make container-fluid padding-left: 5% , padding-right: 5% when loading page?

if add row need put column padding go normal. if there nothing inside of col, believe required.

<div class="container-fluid">     <div class="row">         <div class="col-xs-12">              &nbsp;         </div>     </div>  <div class="row">         <div class="col-xs-12">             <div class="page-host" id="content-host" data-bind="router: { transition: 'entrance' }">          </div> </div> 


Comments

Popular posts from this blog

javascript - Chart.js (Radar Chart) different scaleLineColor for each scaleLine -

apache - Error with PHP mail(): Multiple or malformed newlines found in additional_header -

java - Android – MapFragment overlay button shadow, just like MyLocation button -