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:
then, after 2-3 second, page becoming necessary
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"> </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
Post a Comment