Source Code:
(back to article)
Submit
Result:
Report an issue
<!DOCTYPE html> <html> <head> <title>Title of the document</title> <style> .polaroid a { background: #ffffff; display: inline-block; margin: 55px 75px 30px; padding: 15px 15px 30px; text-align: center; text-decoration: none; -webkit-box-shadow: 0 4px 6px rgba(0, 0, 0, .3); -moz-box-shadow: 0 4px 6px rgba(0, 0, 0, .3); box-shadow: 0 4px 6px rgba(0, 0, 0, .3); -webkit-transition: all .20s linear; -moz-transition: all .20s linear; transition: all .20s linear; z-index: 0; position: relative; } .polaroid a:after { color: #333; font-size: 25px; content: attr(title); position: relative; top: 15px; } .polaroid img { display: block; width: 250px; } .polaroid a:hover { -webkit-transform: scale(1.2); -moz-transform: scale(1.2); transform: scale(1.2); z-index: 10; -webkit-box-shadow: 0 10px 20px rgba(0, 0, 0, .7); -moz-box-shadow: 0 10px 20px rgba(0, 0, 0, .7); box-shadow: 0 10px 20px rgba(0, 0, 0, .7); } </style> </head> <body> <div class="polaroid"> <a href="#" title="Santorini"> <img height="250" src="https://images.unsplash.com/photo-1533105079780-92b9be482077?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=334&q=80" alt="Santorini" title="Santorini" /> </a> </div> </body> </html>