Progress bar layout using CSS and HTML

前端 未结 9 2248
别跟我提以往
别跟我提以往 2020-12-30 01:03

I am trying to achieve UI as shown in the image. However I am having little hard time after trying combinations of positioning now I am clueless. Can someone help me with th

9条回答
  •  离开以前
    2020-12-30 01:15

    To change % dynamically here is code

    HTML

     
    {{currentTimer}}
    {{duration}}

    CSS

    .progress {
        width: 100%;   
      //  border: 1px solid black;
        position: relative;
        padding: 0px;
       }
    
       .percent {
        position: absolute;   
        left: 0%;
       }
    
       .bar {
        height: 16px;
        background-color: rgb(41, 49, 32);
    
       }
       .duration {
        position: absolute;   
        left: 90%;
        top:-5%
       }
    

提交回复
热议问题