twitter bootstrap - HTML nested div outside of parent div -
i'm having issues divs appearing outside of parent div. happens when window on computer in full screen mode, when screen made smaller phone/tablet size divs function how should. in codepen used border colours distinguish when divs outside of parent div when they're inside parent div. http://codepen.io/markbond/pen/lvkpjg?editors=110
fullscreen
phone view
html
<div class="ibox-content" id="ibox-9"> <!--div body--> <div class="content active" id="budgetselection"> <div class="col-lg-6"> <label>budget scenerio</label> <div class="checkbox"> <label><input type="checkbox" />50mill</label> </div> <div class="checkbox"> <label><input type="checkbox" />100mill</label> </div> <label>table views</label> <div class="checkbox"> <label><input type="checkbox" />table1</label> </div> </div> <div class="col-lg-6"> <div class="radio"> <label><input type="radio" />show treatments</label> </div> <div class="radio"> <label><input type="radio" />show years</label> </div> </div> </div> </div>
you can give container-fluid
class div body.
bootply link
<div class="content active container-fluid" id="budgetselection">
you can go clearfix
fixes problem too.
Comments
Post a Comment