Create progress bar with div element - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Div

Description

Create progress bar with div element

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">
center {<!--   w w w .j  a va2  s. co m-->
   text-align:left;
}

.container {
   width:401px;
}

.bar {
   width:100%;
   background:Chartreuse;
   padding:4px;
   border-radius:4px;
   box-shadow:inset 0px 2px 4px yellow;
}

.bar-fill {
   height:21px;
   display:block;
   background:cornflowerblue;
   width:81%;
   border-radius:4px;
}
</style> 
 </head> 
 <body> 
  <center> 
   <div class="container"> 
    <div class="bar"> 
     <span class="bar-fill"></span> 
    </div> 
   </div> 
  </center>  
 </body>
</html>

Related Tutorials