"Image on hover + horizontal & vertical center"
Bootstrap 3.3.0 Snippet by sergioaclo

<link href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/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 id="button"> <div id="aligner"> See Photo </div> </div> <div id="image"> <img src="http://www.framegallerypgh.com/images/photo-here.png" width="10%"> </div>
#button { position: relative; top: 300px; width: 200px; height: 50px; padding: 0px; border: 5px solid gray; background-color: white; margin: 0 auto; } /* ABSOLUTE CENTER & MIDDLE **insive div***/ #aligner{ margin: 0 auto; text-align: center; position: relative; top: 50%; transform: translateY(-50%); } #button:hover + #image { display: block; } #image { position: relative; top: 40px; width: 100%; height: 100%; opacity: 1; display: none; text-align: center; }

Related: See More


Questions / Comments: