使用CSS将浮动div对齐到右下角

时间:2015-10-16 07:07:01

标签: html css

我遇到了一个令我难过的问题。

我希望将以下代码段右上角的蓝色div对齐到右下角,并且仍然将文本环绕到左侧。

我能够编辑HTML但我无法在<p>标记内嵌套任何内容,因为它是动态插入的。

.container{
  width: 500px;
  border: 1px solid red;
  overflow: auto;
  position: relative;
}
.lower-right{
  width: 150px;
  height: 60px;
  background-color: blue;
  float: right;
}
<div class="container">
  <div class="article">
    <div class="lower-right"> </div>
    <p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It
      has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop
      publishing software like Aldus PageMaker including versions of Lorem Ipsum. </p>
    
  </div>
</div>

看起来应该很简单,但我无法解决这个问题。

0 个答案:

没有答案