Layout Input and button on the same line with float right - HTML CSS HTML Tag

HTML CSS examples for HTML Tag:input button

Description

Layout Input and button on the same line with float right

Demo Code

ResultView the demo in separate window

<html lang="en">
 <head> 
  <style>
.float-right {
   float:right;
}
</style> <!--from  www  . j a v  a2  s.  co  m-->
 </head> 
 <body translate="no"> 
  <div> 
   <input type="text" class="float-right"> 
   <button class="float-right">Submit</button> 
  </div>  
 </body>
</html>

Related Tutorials