I want everything to be in the center of the page, it also needs to be responsive.
this is my code with PHP, because I'm using a loop to show all the checkboxes.
<div class="container-fluid">
<!-- START FORM -->
<form method="post" class="form-horizontal">
<!-- ROW 1 CHECKBOXES -->
<?php
for ($i=0; $i < 8; $i++) {
echo "<div class='row'>
<div class='col-md-4'>
<div class='col-md-2'><input type='checkbox' class='form-
control chk_boxes2' name='check_list[]'></div>
<label class='col-md-2'>Medewerker</label>
</div>
<div class='col-md-4'>
<div class='col-md-2'><input type='checkbox' class='form-
control chk_boxes2' name='check_list[]'></div>
<label class='col-md-2'>Medewerker</label>
</div>
<div class='col-md-4'>
<div class='col-md-2'><input type='checkbox' class='form-
control chk_boxes2' name='check_list[]'></div>
<label class='col-md-2'>Medewerker</label>
</div>
</div>";
}
?>
<!-- ROW SUBMIT -->
<div class="row down right">
<div class="col-md-6">
<label class="col-md-3">Check all</label>
<div class="col-md-3"><input type='checkbox'
class="chk_boxes form-control">
</div>
<div class="col-md-6">
<input type="submit" name="Verder" value="Verder"
class="form-control btn-primary">
</div>
</div>
</form>
<!-- END FORM -->
</div>
This is the jQuery I use right now, I know it's nothing solid:
$('.down').css('margin-top', function () {
return ($(window).height() - $(this).height()) / 2.8
});
$('.right').css('margin-left', function () {
return ($(window).height() - $(this).height()) / 2
});
This is a link to JSFiddle, you do need to expand it because big screens is the main problem here.
https://jsfiddle.net/wq0r0se4/
Thanks in advanced.