Vertical align of different buttons inside a div - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Button

Description

Vertical align of different buttons inside a div

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">
.Languages {<!--from   w ww  . j a  v a2 s  . c  o m-->
   position:relative;
   padding-left:41px;
   float:left;
   width:100%;
   height:63px;
   background-color:Chartreuse;
}

.Type1 {
   position:relative;
   float:left;
   height:100%;
   width:100px;
   font-size:19px;
   margin-right:11px;
   line-height:63px;
   box-sizing:border-box;
   background-color:yellow;
   border:0;
   padding:0;
}

.Type2 {
   position:relative;
   float:left;
   width:31px;
   border-bottom:2px solid blue;
   margin-left:6px;
   cursor:pointer;
   background-color:pink;
   border:0;
   padding:0;
   vertical-align:middle;
}

.a {
   height:6px;
   margin-top:29.6px;
}

.b {
   height:26px;
   margin-top:19.6px;
}

.c {
   height:46px;
   margin-top:9.6px;
}

.d {
   height:63px;
}
</style> 
 </head> 
 <body> 
  <div class="Languages"> 
   <button class="Type1" data-id="1">Lorem i</button> 
   <button class="Type1" data-id="1">Lorem </button> 
   <button class="Type2 a"></button> 
   <button class="Type2 b"></button> 
   <button class="Type2 c"></button> 
   <button class="Type2 d"></button> 
  </div>  
 </body>
</html>

Related Tutorials