I have a cell in an HTML . I would like part of the cell contents to be left justified and part to be right justified. Is this possible? 8条回答 时光取名叫无心 (楼主) 2020-12-08 04:27 I came up with this while trying to figure out how to display currency ('$' to left, number to right) in table cells: 20.34 .currency { text-align: right; } .currency:before { content: "$"; float: left; padding-right: 4px; } 0 讨论(0) 查看其它8个回答 发布评论: 提交评论 加载中... 验证码 看不清? 提交回复 热议问题
. I would like part of the cell contents to be left justified and part to be right justified. Is this possible? 8条回答 时光取名叫无心 (楼主) 2020-12-08 04:27 I came up with this while trying to figure out how to display currency ('$' to left, number to right) in table cells: 20.34 .currency { text-align: right; } .currency:before { content: "$"; float: left; padding-right: 4px; } 0 讨论(0) 查看其它8个回答 发布评论: 提交评论 加载中... 验证码 看不清? 提交回复 热议问题
I came up with this while trying to figure out how to display currency ('$' to left, number to right) in table cells:
20.34 .currency { text-align: right; } .currency:before { content: "$"; float: left; padding-right: 4px; }