On Oct 18, 9:01 pm, Guenter Milde <mi...@users.berlios.de> wrote:
>
> How about ".precaption.rubric > div > pre"?
>

Thanks for the suggestion - I wouldn't expect that to work (and it
didn't, when I tried it) because the p.precaption.rubric is a sibling,
not a parent, of the div. Essentially I want

p.precaption.rubric + div > pre

as a selector for the pre, but I don't believe that's supported.

There's also the issue of how to select the pre (to zero its bottom
margin) based on the fact that a postcaption is after it; AFAIK the
"+" for adjacent siblings can only be used to select the later
sibling, and I don't believe there's an alternative for selecting the
earlier sibling.

> The selector "p.precaption.rubric", is more specific than "p.rubric"
> and hence gets precedence in all conformant browsers.

Good point, but I still don't have a solution :-(.

Thanks & regards,

Vinay Sajip

-- 
You received this message because you are subscribed to the Google Groups 
"sphinx-dev" group.
To post to this group, send email to sphinx-...@googlegroups.com.
To unsubscribe from this group, send email to 
sphinx-dev+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/sphinx-dev?hl=en.

Reply via email to