Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
menu search
person
Welcome To Ask or Share your Answers For Others

Categories


I'm trying to display amount of money a user spent in a table.

I want the display amount to look neat, but it looks like below

https://i.stack.imgur.com/kOpQ3.png


I want their dot to be on the black straight line.

Thank you in advance.

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
194 views
Welcome To Ask or Share your Answers For Others

1 Answer

here is the solution of your answer you can replace the price with your dyanmic price of django here is picture enter image description here

here is the html

<div style="display:inline-block">
          <div style="display: flex;justify-content:space-between"><span>$</span><span>18.75</span></div>
          <div style="display: flex;justify-content:space-between"><span>$</span><span>18.75</span></div>
          <div style="display: flex;justify-content:space-between"><span>$</span><span>18.75</span></div>
          <div style="display: flex;justify-content:space-between"><span>$</span><span>.75</span></div>
          <div style="display: flex;justify-content:space-between"><span>$</span><span>784.75</span></div>
      </div>   

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
...