CSS horizontal buttons on multiple lines text - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Button

Description

CSS horizontal buttons on multiple lines text

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 * {<!--from   w  w  w  . j  a  va 2  s  .  c om-->
   display:block;
   padding:0;
   margin:0;
}

ul {
   list-style-type:none;
   background-color:Chartreuse;
   width:497px;
   height:63px;
}

li {
   display:inline-block;
   width:63px;
   height:63px;
   text-align:center;
   background-color:yellow;
   float:left;
}

.outer {
   margin-left:3px;
   margin-top:3px;
   width:59px;
   height:59px
   background-color: yellow;
}

.inner {
   display:table-cell;
   vertical-align:middle;
   width:59px;
   height:59px;
   background-color:blue;
}

a {
   text-decoration:none;
   font-size:13px;
   min-height:13px;
   text-transform:uppercase;
   font-family:Arial;
}

a:hover {
   background-color:pink;
}
</style> 
 </head> 
 <body> 
  <div> 
   <ul> 
    <li> 
     <div class="outer"> 
      <div class="inner"> 
       <a href="#">Lorem</a> 
      </div> 
     </div> </li> 
    <li> 
     <div class="outer"> 
      <div class="inner"> 
       <a href="#">Lorem</a> 
      </div> 
     </div> </li> 
    <li> 
     <div class="outer"> 
      <div class="inner"> 
       <a href="#">Lorem ipsum dolor s</a> 
      </div> 
     </div> </li> 
    <li> 
     <div class="outer"> 
      <div class="inner"> 
       <a href="#">Lorem</a> 
      </div> 
     </div> </li> 
    <li> 
     <div class="outer"> 
      <div class="inner"> 
       <a href="#">Lorem</a> 
      </div> 
     </div> </li> 
   </ul> 
  </div>  
 </body>
</html>

Related Tutorials