John Brown wrote:
Hello All,

My title page has a <title>, <subtitle> and <date>. I wanted to align
all three elements on the centre. The title and subtitle were
straightforward, but I had some trouble with the date.

I looked at the HTML and saw that the date was represented
as <div><span class="date">June 2008<br></span></div>.

Apparently, text-align only applies to block elements,and <span> is
an inline element. Through trial-and-error, I eventually found that
the way to give the enclosing <div> an ID was to put
<date id="title_date"> in the titlepage-content in the title spec
file and regenerate the titlepage stylesheet. Then I could use:

/* CSS begins */
H1.title,H2.title,H3.title,H4.title,H5.title,H6.title
{
  text-align: center;
}

Is this the "right" way to do it?

Yes John. Get the output you want,
with CSS classes if needed,
then decorate with CSS.

The only sensible way!


regards

--
Dave Pawson
XSLT XSL-FO FAQ.
http://www.dpawson.co.uk

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to