Layout Button to look like stairs - HTML CSS CSS Form

HTML CSS examples for CSS Form:input button layout

Description

Layout Button to look like stairs

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

input[type="button"]{
   display:block;
}
.myButton{ margin-left:10px; }
.myButton2{ margin-left:20px; }
.myButton3{ margin-left:30px; }
.myButton4{ margin-left:40px; }
.myButton5{ margin-left:50px; }


      </style> 
 </head> <!--from  w w w . j  a v  a  2s .  c  o m-->
 <body>
   div id='2' style="display: block;" align="center" &gt; 
  <p class="tekst"> &nbsp; <br> <br> Bitte bewerten Sie Ihre Zufriedenheit mit: </p> 
  <p class="tekst">&nbsp;Wie zufrieden sind Sie mit der Lage des Hotels ?</p> 
  <input type="button" class="myButton" value="1"> 
  <input type="button" class="myButton2" value="2"> 
  <input type="button" class="myButton3" value="3"> 
  <input type="button" class="myButton4" value="4"> 
  <input type="button" class="myButton5" value="5"> 
  <input type="hidden" name="mjesto" id="mjesto">  
 </body>
</html>

Related Tutorials