所以我在我的应用程序中有评论,问题是一旦评论中的内容变成三行,它会包裹在用户图片下方,而不是从其他行开始。我对 CSS 很陌生,但似乎我应用的任何边距都只会移动第一行。
CSS:
#comment_border {
border: 1px solid $grayLighter;
border-radius: 3px;
background-color: #d6e5f1;
margin-left: 90px;
padding: 2px;
}
.comment_info {
display: block;
margin-left: -20px;
color: #767676;
}
#comment_content {
/* dont know what to put here */
}
查看/评论:
<div class="row" id="comment_border">
<span class="comment_info">
<aside class="span2">
<%= link_to gravatar_for((comment.user), size: 35), comment.user %>
<%= link_to comment.user.name, comment.user, id: "feedusername" %>
</aside>
<span id="comment_content"> <%= comment.content %> </span>
</span>
</div>