RE: [docbook-apps] Center a logo in the navigational header

From
Mauritz Jeanson <>
Date
2006-09-20T16:31:56+00:00
ID
000f01c6dcd2$42d89190$71ea1a51@D7MZ171J
Thread
RE: [docbook-apps] Center a logo in the navigational header
> -----Original Message-----
> From: Kalden Kalden 
> 
> I managed to add a logo above the navigational header in the chunked
> HTML output using this code in my customized xsl sheet :
> <xsl:template name="user.header.content">
>   <IMG>
>     <xsl:attribute name="src">images/logo.png</xsl:attribute>
>   </IMG>
> </xsl:template>
> 
> The logo is aligned to the left and I 'd like it centered.


 <div class="centered">
    <IMG>
      <xsl:attribute name="src">images/logo.png</xsl:attribute>
    </IMG>
 </div>

 together with the following rule in a CSS stylesheet: 

 .centered {text-align: center}

The name of the stylesheet is set with a parameter:
http://docbook.sourceforge.net/release/xsl/1.71.0/doc/html/html.stylesheet.h
tml

/MJ