Well, if you are going to float it, it should not be an inlinemediaobject, which is intended to appear inline. You could instead use this in your source file:
<informalfigure floatstyle="right"> <mediaobject> <imageobject> <imagedata ...> <imageobject> <mediaobject> </informalfigure> <para>Some Text</para> The informalfigure wrapper lets you add a floatstyle attribute, without adding a title. Bob Stayton Sagehill Enterprises b...@sagehill.net From: Peter Fleck Sent: Thursday, September 05, 2013 8:56 AM To: Stefan Knorr Cc: docbook-apps@lists.oasis-open.org Subject: Re: [docbook-apps] html5 align image right Thanks Stefan - that worked when I changed the html manually. How do I get the stylesheet to create it with float rather than "text-align" without me having to manually change the html? Peter On 05/09/13 16:04, Stefan Knorr wrote: Hi Peter, On Do, 2013-09-05 at 13:15 +0200, Peter Fleck wrote: <p><span class="inlinemediaobject"><img style="text-align: right; " src="http://....jpg" width="200"/></span>Some Text</p> However the image is not being aligned to the right. Am I doing something wrong? Well, it's called "text-align" for a reason. :) You may want to try with "float: right;", but that has its own quirks, of course. See https://developer.mozilla.org/en-US/docs/Web/CSS/float Stefan.