"Mini Portfolio!" school practice""
Bootstrap 3.0.3 Snippet by azupan

<link href="//netdna.bootstrapcdn.com/bootstrap/3.0.3/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//netdna.bootstrapcdn.com/bootstrap/3.0.3/js/bootstrap.min.js"></script> <script src="//code.jquery.com/jquery-1.11.1.min.js"></script> <!------ Include the above in your HEAD tag ----------> <div class="container" style="margin-top:10px;"> <div class="row form-group"> <div class="col-xs-12 col-md-6"> <div class="panel panel-default"> <div class="panel-image"> <img src="http://adamzupan87.com/wordpress_hard/wp-content/uploads/2015/11/3.jpg" class="panel-image-preview" /> <label for="toggle-1"></label> </div> <input type="checkbox" id="toggle-1" class="panel-image-toggle"> <div class="panel-body"> <h4>Adam Zupan at the water</h4> <p> This is a photo of lakeshore on lake superior in Thunder Bay On, Can.</p> <p class="text-right"> <a href="http://bootsnipp.com/iframe/kWObR" target="_blank">Best viewed full screen</a><br> <a href="http://validator.w3.org/check?uri=http%3A%2F%2Fbootsnipp.com%2Fiframe%2FkWObR" target="_blank"><small>HTML</small><sup>5</sup></a> </p> </div> <div class="panel-footer text-center"> <a href="#download"><span class="glyphicon glyphicon-download"></span></a> <a href="#facebook"><span class="fa fa-facebook"></span></a> <a href="#twitter"><span class="fa fa-twitter"></span></a> <a href="#share"><span class="glyphicon glyphicon-share-alt"></span></a> </div> </div> </div> <div class="col-xs-12 col-md-6"> <div class="panel panel-default"> <div class="panel-image hide-panel-body"> <img src="http://adamzupan87.com/wordpress_hard/wp-content/uploads/2015/11/41.jpg" class="panel-image-preview" /> <label for="toggle-2"></label> </div> <input type="checkbox" id="toggle-2" class="panel-image-toggle"> <div class="panel-body"> <h4>Adam Zupan in the air</h4> <p>This is a phot of an F18 hornet taking off at the Thunder Bay airport</p> </div> <div class="panel-footer text-center"> <a href="#download"><span class="glyphicon glyphicon-download"></span></a> <a href="#facebook"><span class="fa fa-facebook"></span></a> <a href="#twitter"><span class="fa fa-twitter"></span></a> <a href="#share"><span class="glyphicon glyphicon-share-alt"></span></a> </div> </div> </div> </div> <div class="row form-group"> <div class="col-xs-12 col-md-6"> <div class="panel panel-default"> <div class="panel-heading"> <h3 class="panel-title">My Favorite Picture</h3> </div> <div class="panel-image hide-panel-body"> <img src="http://adamzupan87.com/wordpress_hard/wp-content/uploads/2015/11/2.jpg" class="panel-image-preview" /> <label for="toggle-3"></label> </div> <input type="checkbox" id="toggle-3" class="panel-image-toggle"> <div class="panel-body"> <h4>Adam Zupan in nature</h4> <p>This is a photo i took of a falcon clase to Grand Marais, MN</p> </div> <div class="panel-footer text-center"> <a href="#download"><span class="glyphicon glyphicon-download"></span></a> <a href="#facebook"><span class="fa fa-facebook"></span></a> <a href="#twitter"><span class="fa fa-twitter"></span></a> <a href="#share"><span class="glyphicon glyphicon-share-alt"></span></a> </div> </div> </div> <div class="col-xs-12 col-md-6"> <div class="panel panel-default"> <div class="panel-image"> <img src="http://adamzupan87.com/wordpress_hard/wp-content/uploads/2015/10/DSC_0024.jpg" class="panel-image-preview" /> <label for="toggle-4"></label> </div> <input type="checkbox" id="toggle-4" checked class="panel-image-toggle"> <div class="panel-body"> <h4>Adam Zupan in sports</h4> <p>This is a picture of a friend at FWCC in Thunder Bay ON, Can</p> </div> <div class="panel-footer text-center"> <a href="#download"><span class="glyphicon glyphicon-download"></span></a> <a href="#facebook"><span class="fa fa-facebook"></span></a> <a href="#twitter"><span class="fa fa-twitter"></span></a> <a href="#share"><span class="glyphicon glyphicon-share-alt"></span></a> </div> </div> </div> </div> </div>
@import url("http://netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.css"); body{ background-color:black; color:#ccc; } .panel-image { position: relative; } .panel-image img.panel-image-preview { width: 100%; border-radius: 2px 2px 0px 0px; } .panel-image label { display: block; position: absolute; top: 0px; left: 0px; height: 100%; width: 100%; } .panel-heading ~ .panel-image img.panel-image-preview { border-radius: 0px; } .panel-body { overflow: hidden; } .panel-image ~ input[type=checkbox] { position:absolute; top:- 30px; z-index: -1; } .panel-image ~ input[type=checkbox] ~ .panel-body { height: 0px; padding: 0px; } .panel-image ~ input[type=checkbox]:checked ~ .panel-body { height: auto; padding: 15px; } .panel-image ~ .panel-footer a { padding: 0px 10px; font-size: 1.3em; color: rgb(100, 100, 100); }

Related: See More


Questions / Comments: