html - Leaves unnecessary Blank Space between elements in class row -
actually don't know how describe issue. have designed model, in have specify elements in class row
. after 3 elements leaves unnecessary spaces. there issue bootstrap class row
?.checkout link. click on register
<link rel="stylesheet" type="text/css" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css"> <div class="row"> <div class="col-sm-4 standard"> <div class="form-group"> <div class="col-sm-12"> </div> </div> </div> <div class="col-sm-4 school_name"> <div class="form-group"> <div class="col-sm-12"> </div> </div> </div> <div class="col-sm-4 occupation"> <div class="form-group"> <div class="col-sm-12"> </div> </div> </div> <div class="col-sm-4 father_income"> <div class="form-group"> <div class="col-sm-12"> </div> </div> </div> <div class="col-sm-4 blood_group"> <div class="form-group"> <div class="col-sm-12"> </div> </div> </div> <div class="col-sm-4 type_of_wastage"> <div class="form-group"> <div class="col-sm-12"> </div> </div> </div> <div class="col-sm-4 photo"> <div class="form-group"> <div class="col-sm-12"> </div> </div> </div> <div class="col-sm-4 edit_photo" style="display: none;"> <div class="form-group"> </div> </div> <div class="col-sm-4 city"> <div class="form-group"> <div class="col-sm-12"> </div> </div> </div> <div class="col-sm-4 address"> <div class="form-group"> </div> </div> </div>
the bootstrap grid syntax wrong. row in bootstrap contains 12 columns. if have 12 columns in row, must open new row. in case, must open new row after used col-sm-4
class 3 times. must this:
<div class="row"> <div class="col-sm-4"></div> <div class="col-sm-4"></div> <div class="col-sm-4"></div> </div> <div class="row"> <div class="col-sm-4"></div> <div class="col-sm-4"></div> <div class="col-sm-4"></div> </div>
Comments
Post a Comment