Padding input and button - HTML CSS CSS Form

HTML CSS examples for CSS Form:input button

Description

Padding input and button

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">

.form,<!--from w  w w .j a  v a2  s.  c  o m-->
button {
   font-size: 12px;
   border: 1px solid black;
   box-sizing: border-box;
   line-height:30px;
   padding-left:5px;
}


      </style> 
 </head> 
 <body> 
  <input type="text" class="form" placeholder="Text"> 
  <button class="button">Click</button>  
 </body>
</html>

Related Tutorials