我想将一个框添加到HTML页面中,并以一种非常不寻常的方式对其进行样式设置。我找不到正确的CSS规则或正确的搜索词。一切都是这样的:
this head might ,----------------------.
be quite long and | this box has dynamic |
should wrap to | height and width and |
the next line | sticks to right side |
| |
=============
一张向你展示这件事的图片:
我希望分栏化的p的行为类似于非分栏化的p,并且它的文本要围绕div进行整形。
下面是html:
<div>hey, I should float !</div>
<p>Velit porttitor mattis nisi sit magnis nec et nunc pellentesque! Pulvinar est! Nunc massa, dapibus eu etiam ut? Enim eu vut porta scelerisque auctor auctor, integer. Natoque elit?
------------- --------------------------------------------------
| some text | | some more text, sometimes more, sometimes less |
------------- --------------------------------------------------
|<------------------------- 100% width ----------------------->|
所以我有上面的布局。左边的盒子应该尽可能小,而右边的应该占剩余的空
我在CSS中遇到了一些浮动框的问题。
<div class="container">
<div class="one">One</div>
<div class="two">Two</div>
<div class="tre">Three - The HTML structure should stay like this, but this box should be starting to the left of the red box.</div&