HTML CSS examples for CSS Form:input button text
Floating a button to the right while keeping the height and vertical center of the text
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> dt{<!--from w ww .j a v a 2 s.c om--> background-color: #CCC; padding:5px; } .title{ float:left; } dt button{ float:right; } .clear{ clear:both; } </style> </head> <body> <br> <br> <br> <dt> <span class="title">My Title</span> <button>Save</button> <div class="clear"></div> </dt> </body> </html>