[dokuwiki] Re: Can one force text below the 'last image'?

  • From: Anika Henke <anika@xxxxxxxxxxxxxxx>
  • To: dokuwiki@xxxxxxxxxxxxx
  • Date: Wed, 12 Jan 2011 23:03:47 +0000

On 12.01.2011 14:57, Otto Vainio wrote:

On 12.1.2011 16:40, Chris G wrote:
On Wed, Jan 12, 2011 at 12:56:56PM +0000, Christopher Smith wrote:
On 12 Jan 2011, at 12:46, Chris G wrote:
Is there any way I can force Heading2 to be below the diagram (and
hence
occupy the full width of the window)?

I added the
following in the page where I wanted the break:-

<HTML><BR clear=all></HTML>

Crude, but effective. :-)


A more elegant way could be to add something like

{clear} <p style="clear:both" />

into conf/entities.local.conf

I would change that to

{clear} <div class="clearer"></div>

Because ...
a) using the short-hand closing ("/>") can cause problems in some browsers
b) a <p> would give it a semantic meaning we wouldn't want
c) "clear:both" in itself wouldn't be enough, because (depending on the template) it would also create an unwanted space underneath d) the div.clearer is already part of the core wiki (independent from the template!)

You could also use the clearfloat plugin [http://www.dokuwiki.org/plugin:clearfloat] with "~~CL~~" or the wrap plugin [http://www.dokuwiki.org/plugin:wrap] with "<WRAP clear></WRAP>".

Cheers,
Anika
--
DokuWiki mailing list - more info at
http://www.dokuwiki.org/mailinglist

Other related posts: