View Single Post
Old 11-19-2013, 11:08 PM   #1
AuthorGreg
Connoisseur
AuthorGreg began at the beginning.
 
Posts: 61
Karma: 10
Join Date: Jul 2012
Device: Nook Simple Touch, Kindle 2nd Gen, Kindle 7" Fire HD
General Sibling Selector

I just discovered that using a general sibling selector doesn't work for ePubs, at least not in ADE. My code was this:

Code:
h1  ~ p {
    font-size: 1.3em;
    margin-top: 1em;
    font-style: italic;
    text-indent: 0;
    text-align: center;
}
That, I suppose, is only supported in CSS3. And therefore not valid in ePub 2.0? It passed validation, but again, ADE didn't render it.

Thanks,

Greg
AuthorGreg is offline   Reply With Quote