【发布时间】:2014-09-11 21:56:04
【问题描述】:
我试图在 Bootstrap 3 中垂直对齐两行文本和一个图像。图像总是相同的大小。当我在希望中断发生的行之间添加<br> 标记时,它会将第二行向下移动到图像下方。
<div class="col-xs-12 col-md-6">
<img style="vertical-align:middle; max-height:100px;" src="http://placehold.it/100x150">
<span class="bold">Product Name</span>
<button name="remove" value="1" type="submit" class="font-tiny btn-link">Remove</button>
<br> <!--this is where I would like to create line break-->
<span class="small text-light">From "Company Name"</span>
</div>
有人知道怎么做吗?我遇到了其他看起来相关但与引导程序 3 无关的问题。谢谢
【问题讨论】:
标签: html css twitter-bootstrap twitter-bootstrap-3