HTML CSS examples for CSS Widget:Div
Create progress bar with div element
<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>