当我在div中写一些内容时,它显示为
但是我想让它以与
相同的边距显示我尝试了边距,填充和每个解决方案,但没有任何工作。所以如何实现这一点,使网页看起来不错?
答案 0 :(得分:2)
你试过了吗?
text-align: justify
HTML:
<p class="info">
This is a long piece of text that doesn't make sense
yet you are still reading it up to this point and even up
to now and more.
</p>
CSS:
p.info { text-align: justify }