HTML CSS examples for CSS Form:input
Align responsive input with image block to the page bottom
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> *, *::before, *::after {<!-- w ww.j a v a 2 s .c o m--> -webkit-box-sizing:border-box; -moz-box-sizing:border-box; box-sizing:border-box; } .reply_placeholder { padding:31px 31px 21px 66px; position:absolute; bottom:0; width:100%; overflow:hidden; border-top:2px solid Chartreuse; } .logo { position:absolute; top:51%; left:0; margin-top:-21px; background-image:url('http://www.java2s.com/style/demo/Google-Chrome.png'); width:51px; height:51px; border-radius:4px; border:2px solid yellow; background-size:cover; background-position:center center; display:block; margin-right:11px; } .reply_placeholder input { display:block; width:100%; height:51px; float:right; } </style> </head> <body> <div class="reply_placeholder"> <div class="logo"></div> <input type="text" class="input" placeholder="Click here to reply"> </div> </body> </html>