bootstrap modal popup example
bootstrap modal popup example on load.
HTML
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css">
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js"></script>
<!-- Button trigger modal -->
<div class="checkboxFour">
<input type="checkbox" value="1" id="checkboxFourInput" name="" data-toggle="modal" data-target="#myModal"/>
<label for="checkboxFourInput"> </label>
</div><label id="boxlabel> styled label </label>
CSS
input[type=checkbox] {
visibility: hidden;
}.
checkboxFour {
width: 10px;
height: 10px;
background: #ddd;
margin: 20px 90px;
border-radius: 100%;
position: relative;
box-shadow: 0px 1px 3px rgba(0,0,0,0.5);
}
.checkboxFour label {
display: block;
width: 8px;
height: 8px;
border-radius: 0;
transition: all .5s ease;
cursor: pointer;
position: absolute;
top: 5px;
left: 5px;
z-index: 1;
background: #333;
box-shadow:inset 0px 1px 3px rgba(0,0,0,0.5);
}
.checkboxFour input[type=checkbox]:checked + label {
background: #26ca28;
}
#boxlabel{
vertical-alignment: middle;
}