我希望有一个看起来像这样的 div:
我无法将作者的名称定位在右下角。 我想知道如何在不使用
+--------------------------------+
| |
| "This is a quote..." |
| |
| Author |
+--------------------------------+
我无法将作者的名称定位在右下角。 我想知道如何在不使用
position:absolute
且我的div没有固定大小的情况下完成它。
.quote {
margin: 20px;
background-color: blue;
padding: 20px;
border-radius: 15px;
text-align: justify;
color: white;
}
.author {
color: red;
float: right bottom; /* does not work ... it works if I remove 'bottom' but I don't like it because I want a vertical space between the quote and the author*/
}
<div class="quote">
Lorem ipsum dolor sit amet
<span class="author">loremipsum.io</span>
</div>