HTML CSS examples for CSS Form:input button text
Center text in a line, with a button floated to it's right
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> .parent {<!--from w ww.ja v a 2 s . c om--> border: solid 3px #000; padding: 5px; position: relative; } .button { float: right; } .header{ text-align: center; } </style> </head> <body> <div class="parent"> <div class="header"> My header: <button type="button" name="abutton" class="button">The button!</button> </div> </div> </body> </html>