This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
Re: xhtml images not aligned
- From: Bob Stayton <bobs at caldera dot com>
- To: ~ion~ <vnhu38f93 at subdimension dot com>,docbook-apps <docbook-apps at lists dot oasis-open dot org>
- Date: Tue, 17 Dec 2002 12:30:25 -0800
- Subject: Re: DOCBOOK-APPS: xhtml images not aligned
- References: <1040065604.1035.6.camel@halltc251.bham.ac.uk>
On Mon, Dec 16, 2002 at 07:06:44PM +0000, ~ion~ wrote:
> In graphics.xsl in the XHTML subdirectory of the XSL stylesheets
> version 1.58.1 it says:
>
> "Finally, align and valign are troublesome. Horizontal alignment is now
> supported by wrapping the image in a <div align="{@align}"> (in block
> contexts!). I can't think of anything (practical) to do about vertical
> alignment."
>
> However, when one generates XHTML using the XHTML stylesheets the
> following is generated:
>
> <div class="mediaobject"><img src="images/good2.png" align="center"
> alt="Google, as viewed from the lynx web browser ;)" /></div>
>
> Am I missing something here?
I don't think you are missing anything. I checked the
stylesheet, and it does not add align to the <div>
wrapper, so it looks like either Norm didn't check in
the changes, or he didn't complete the work. I've been doing
other work on the align stuff, so I'll put it in there.
What I don't understand is why align in the img tag itself
doesn't work in HTML. When I tested it, I got align="right"
to work, but not align="center" when the attribute was
on the img tag. On the div tag, it always works.
Strange.
--
Bob Stayton 400 Encinal Street
Publications Architect Santa Cruz, CA 95060
Technical Publications voice: (831) 427-7796
The SCO Group fax: (831) 429-1887
email: bobs@sco.com