Displaying button and label inline - HTML CSS CSS Form

HTML CSS examples for CSS Form:input label

Description

Displaying button and label inline

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

.round-button<!--  w  w w. j  a v  a  2s. co m-->
{
   width:20px;
   display: table-cell;
}
.round-button-circle {
   width: 100%;
   height:0;
   padding-bottom: 100%;
   border-radius: 50%;
   overflow:hidden;
   background: #4679BD;
   box-shadow: 0 0 3px gray;
}
.round-button-circle:hover {
   background:#30588e;
}
.round-button a {
   width:100%;
   padding-top:50%;
   padding-bottom:50%;
   line-height:1em;
   margin-top:-0.5em;
   text-align:center;
   color:#e2eaf3;
   font-family:Verdana;
   font-size:1.2em;
   font-weight:bold;
   text-decoration:none;
}
.lblname{
   display: table-cell;
   padding: 0 5px;
   vertical-align: middle;
}


      </style> 
 </head> 
 <body> 
  <span> 
   <div class="round-button"> 
    <div class="round-button-circle"></div> 
   </div> <label class="lblname">edit</label> </span> 
  <br> 
  <span> 
   <div class="round-button"> 
    <div class="round-button-circle"></div> 
   </div> <label class="lblname">edit</label> </span>  
 </body>
</html>

Related Tutorials