Place button directly below a textarea - HTML CSS CSS Form

HTML CSS examples for CSS Form:input button text

Description

Place button directly below a textarea

Demo Code

ResultView the demo in separate window

<html>
 <head> 
  <meta name="viewport" content="width=device-width, initial-scale=1"> 
  <style id="compiled-css" type="text/css">

div {<!--  w  w  w. j a v a 2  s. c  o  m-->
   width: 100px;
   height: 125px;
   font-size: 0;
}
div > *{
   float: left;
   clear: both;
}
textarea {
   width: 100px;
   height: 100px;
   padding: 0;
   margin: 0;
   border: none;
   outline: none;
   background: red;
   resize: none;
}
button {
   width: 100px;
   height: 25px;
   border: none;
   background: blue;
   margin: 0;
   padding;
}


      </style> 
 </head> 
 <body> 
  <div> 
   <textarea></textarea> 
   <button></button> 
  </div>  
 </body>
</html>

Related Tutorials