Progress bar layout using CSS and HTML

前端 未结 9 2251
别跟我提以往
别跟我提以往 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:29

    In the following sample I added to non breaking spaces to achieve that the browser gives your box a dimension. Without that it would assume it empty and thus not applying the correct width and height.

    You also might want to give the boxes a position:absolute, for putting them on top of each other. You also should use the style attribute instead of the width attribute since there is no width attribute for divs.

    
    
     
    50%
     

提交回复
热议问题