HTML CSS examples for CSS Form:input submit
Centre submit button in line with form box
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> #search {<!-- www. j a v a 2s . c om--> cursor:pointer; width:70px; height: 31px; line-height:0; font-size:0; text-indent:-999px; color: transparent; background: url(ico-search.png) no-repeat #151B54 center; border: 1px solid #FFFFFF; -moz-border-radius: 2px; -webkit-border-radius: 2px; } #submit:hover { background: url(ico-search.png) no-repeat center #151B54; border: 1px solid #FFFFFF; } #search_button { float: right; padding: 9px 0 0 0; margin: 0; } </style> </head> <body> <input name="query" id="querybox" style="width:400px;height:40px;font-size:26px;border-radius:15px;border=0;"> <div id="search_button"> <input type="button" value="Search" id="search" style="width:100px;height=40px;font-size=20px;"> </div> </body> </html>