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] Simple CSS customization question


Actually, the space separator in CSS selectors means descendent, not child.
See sections 5.5 and 5.6 in http://www.w3.org/TR/REC-CSS2/

Since the article div contains the whole article, all of your div.titlepages
are contained in it.  Most people are used to using the space separator as
if it were specifying child because most HTML is not as hierarchical in its
structure as Docbook output.

The ">" separator means child, but I think I recall that older browsers may
not support that CSS2 selector. It's worth a try.

Bob Stayton
Sagehill Enterprises
DocBook Consulting
bobs@sagehill.net


----- Original Message ----- 
From: "Jeffery B. Rancier" <jeff.rancier@softechnics.com>
To: <docbook-apps@lists.oasis-open.org>
Sent: Friday, February 27, 2004 12:35 PM
Subject: [docbook-apps] Simple CSS customization question


> Given the following CSS snippet:
>
> ,----
> | h3 { font: normal 16px arial;
> |      text-align: right }
> |
> | div.article div.titlepage h3 { font: normal small-caps 16px arial;
> |                                text-align: center }
> `----
>
> Why are all h3's in my HTML center justified?   The way I understood
> the definition, the following represents a hierarchy:
>
> div.article div.titlepage h3
>
> Meaning that only the h3 within the div.titlepage, within the
> div.article, would be center justified?
>
> -- 
>
> Thanks,
> Jeff
>
>
> To unsubscribe from this list, send a post to
docbook-apps-unsubscribe@lists.oasis-open.org, or visit
http://www.oasis-open.org/mlmanage/.
>
>
>




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