HTML CSS examples for CSS Form:input image button
Bottom positioned button for image panel
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> .a {<!-- w ww. j av a 2 s. c o m--> width: 33%; float: left; border: 1px solid red; position: relative; text-align: center; padding: 2%; padding-bottom: 50px; } img { display: block; width: 100%; max-width:150px; height: auto; margin: 2% auto; } .button { position: absolute; bottom: 5px; background: green; display: block; left: 50%; width: 50%; margin-left: -25%; border-radius:10px; } </style> </head> <body> <div class="a" style="height: 350px"> <h2>This is a Title</h2> <img src="https://www.java2s.com/style/demo/InternetExplorer.png" alt=""> <p>This is some content</p> <p>This is some content</p> <p>This is some content</p> <p>This is some content</p> <a href="#" class="button">TESTING</a> </div> <div class="a" style="height: 350px"> <h2>This is a Title</h2> <img src="https://www.java2s.com/style/demo/Firefox.png" alt=""> <p>This is some content</p> <p>This is some content</p> <p>This is some content</p> <a href="#" class="button">TESTING</a> </div> <div class="a" style="height: 350px"> <h2>This is a Title</h2> <img src="https://www.java2s.com/style/demo/Google-Chrome.png" alt=""> <a href="#" class="button">TESTING</a> <p>This is some content</p> <p>This is some content</p> <p>This is some content</p> <p>This is some content</p> </div> </body> </html>