Adding a button to each boxes - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Button

Description

Adding a button to each boxes

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">
section {<!--from w ww  .j a  v  a 2s.  co m-->
   height:auto;
   padding-bottom:100px;
   background-color:Chartreuse;
}

.how-text {
   text-align:center;
   display:inline-block;
   width:100%;
   color:yellow;
   margin-top:41px;
   font-size:31px;
   letter-spacing:4px;
}

.how-box {
   text-align:center;
   height:auto;
   margin-top:131px;
}

.idea {
   background:url('http://www.java2s.com/style/demo/Google-Chrome.png') center center no-repeat;
   width:201px;
   height:201px;
   display:inline-block;
   margin-right:26px;
   border:solid blue;
}

.scatch {
   background:url('http://www.java2s.com/style/demo/Google-Chrome.png') center center no-repeat;
   width:201px;
   height:201px;
   display:inline-block;
   margin-right:26px;
   border:solid pink;
}

.craft {
   background:url('http://www.java2s.com/style/demo/Google-Chrome.png') center center no-repeat;
   width:201px;
   height:201px;
   display:inline-block;
   margin-right:26px;
   border:solid WhiteSmoke;
}

.launch {
   background:url('http://www.java2s.com/style/demo/Google-Chrome.png') center center no-repeat;
   width:201px;
   height:201px;
   display:inline-block;
   margin-right:26px;
   border:solid OrangeRed;
}

button {
   width:100%;
   height:21%;
   border-bottom:solid grey;
}
</style> 
 </head> 
 <body> 
  <section> 
   <div class="how-text"> 
    <h3>How to use SnappyApp</h3> 
   </div> 
   <div class="how-box"> 
    <div class="idea-top"> 
    </div> 
    <div class="idea"> 
     <button> BUTTON </button> 
    </div> 
    <div class="scatch"> 
     <button> BUTTON </button> 
    </div> 
    <div class="craft"> 
     <button> BUTTON </button> 
    </div> 
    <div class="launch"> 
     <button> BUTTON </button> 
    </div> 
   </div> 
  </section>  
 </body>
</html>

Related Tutorials