Input button displaying a number on right hand corner - HTML CSS CSS Form

HTML CSS examples for CSS Form:input button

Description

Input button displaying a number on right hand corner

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

.topText {<!--from   www . ja va2s. co  m-->
   position:absolute;
   top:-10px;
   left:90px;
   background-color:blue;
}
.input-div
{
   position:relative;
   background-color:red;
   width:100px;
   height:100px;
}


      </style> 
 </head> 
 <body> 
  <div> 
   <div class="input-div"> 
    <input type="button" value="view"> 
    <span class="topText">value</span> 
   </div> 
  </div>  
 </body>
</html>

Related Tutorials