Re: DOCBOOK-APPS: How to do floating images

From
"[.-B. EBQDIF"
Date
2001-08-11T13:55:03+00:00
ID
Thread
Re: DOCBOOK-APPS: How to do floating images
On 20010810 11:35 (Friday), Rick Bronson wrote:
>   I've combed the mailing list and haven't found a way to do floating
> images on either print or html.  I'm using Docbook 4.1, dsssl-1.71,
> jadetex version 3.3.1 
>   Anyone figured it out?

Have you tried :
<mediaobject>
<imageobject>
<imagedata fileref="woody" align="right"/>
</imageobject>
</mediaobject>

With docbook-xsl-1.41 it produces the following HTML output
<div class="mediaobject"><img src="woody.png" align="right"></div>
(I can't check the print output right now)

Alternatively you can use the following approach for HTML only

If you have the following image element
<mediaobject>
<imageobject>
<imagedata fileref="woody"/>
</imageobject>
</mediaobject>

You can use a CSS with those line inside :
.mediaobject {
    float: right;
}

Hope it helps,
    
-- 
Marc-Aur鋩e DARCHE  <http://ma.darche.free.fr>
AFUL <http://www.aful.org>
Association Francophone des Utilisateurs de Linux/Logiciels Libres
French speaking Linux and Free Software Users' Association