I seem to have a problem with an only child: I define the first-child and last-child, and I want an only-child to behave like a last-child rather than a first-child (or perhaps differently than both).
I thought I could simply define first-child and then last-child, and since both would apply to an only-child, the latter would take precedence when they conflicted.
When this is in the stylesheet:
How might I fix this?
Thanks, Jonathan
I thought I could simply define first-child and then last-child, and since both would apply to an only-child, the latter would take precedence when they conflicted.
When this is in the stylesheet:
section > :first-child { padding: .07in 0in .07in 0in; }
section > :last-child { padding: .07in 0in .375in 0in; }
Prince uses the first-child rule for an only-child. It does the same thing if I put the last-child first or even if I put a separate rule for an only-child first.How might I fix this?
Thanks, Jonathan