OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]

Subject: RE: [docbook-apps] styling titles?

Title: styling titles?
That's what I kinda figured. Thank you for clarifiying the two schools of thought - it makes the development approach in DocBook much clearer.
-----Original Message-----
From: Bob Stayton [mailto:bobs@sagehill.net]
Sent: Wednesday, March 30, 2005 2:51 AM
To: Webmaster; docbook-apps@lists.oasis-open.org
Subject: Re: [docbook-apps] styling titles?

There are two schools of thought on styling chunked content.  One school styles all the chunks the same for consistency, and the other school styles them by position in the document hierarchy.  I don't want to debate the two approaches, but the default in DocBook XSL is the first school (consistency).
But anyone that wants the second school can use CSS to style the h2 elements as you like.  Use the class attributes on the containing <div> elements to create your style selectors, as for example:
div.sect2 h2.title { etc.
Bob Stayton
Sagehill Enterprises
DocBook Consulting
----- Original Message -----
From: Webmaster
Sent: Monday, March 28, 2005 1:23 PM
Subject: [docbook-apps] styling titles?

Hello. This is a dumb question.

I'm trying to make my titles look different on the chunked webpages - depending on whether they are the chapter's title, sect1's title, sect2's title, sect3's title or sect4's title, but they are all getting the style of <h2 class="title">.

So Am I to understand that all title are <h2>?

I guess I'm a bit surprised that the sect1, sect2, etc don't get the cooresponding h1, h2, h3, h4, etc... Comments?

Thank you!


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]