Place two buttons one on top of the other in a span - HTML CSS CSS Form

HTML CSS examples for CSS Form:input button layout

Description

Place two buttons one on top of the other in a span

Demo Code

ResultView the demo in separate window

<html>
 <head> 
  <meta name="viewport" content="width=device-width, initial-scale=1"> 
 </head> <!--from  w  w w. j av  a  2 s .c o  m-->
 <body> 
  <title>Buttons in between spans</title> 
  <span style="background: #f06; vertical-align: top;">Foo bar has left the building</span> 
  <span style="display: inline-block; width: 70px; height: 52px; background: #06f;"> <button style="width: 70px;">Add</button> <button style="width: 70px;">Remove</button> </span> 
  <span style="background: #0f0; vertical-align: top;">Bar hopping is what we do at Friday nights</span>  
 </body>
</html>

Related Tutorials