[pmwiki-users] Frames, Left and Right, Non Floating
tamouse mailing lists
tamouse.lists at gmail.com
Sat Mar 10 14:18:03 CST 2012
On Sat, Mar 10, 2012 at 8:33 AM, Petko Yotov <5ko at 5ko.fr> wrote:
> Jasyn Jones writes:
>> Is there a way to make a non-floating frame that is only as big as the
>> text within? Long sentences, wide box. Few words, narrow box.
> Yes, you use a floating frame and then an element with a "clear" CSS
> property, for example:
> Here some\\
> narrow text.
> The 'lframe' WikiStyle is included in PmWiki otherwise use float:left in
> CSS. After the block, the [[<<]] line break has a clear property.
> Hope that helps.
Stacking floats is the common way to do this, but you might also
consider using display: inline-block for your purposes.
More information about the pmwiki-users