bell notificationshomepageloginedit profileclubsdmBox

10.01% popularity   0 Reactions

I am working with EPUB 2 specifications and I am trying to determine whether or not the content property is supported in EPUB2. I know that it is for EPUB 3 - www.idpf.org/accessibility/guidelines/content/style/reference.php#css025-css21
I am using the content property to generate txt break symbols e.g. "*"

I can see them in my web browser but they are not showing up on my devices or previewers. There is just a blank space with no asterisks.

.TXBDINGBATS {
font-family: SAT_disp_bold;

font-size:1.05em;
line-height: 1.4em;

text-align: center;
margin: .5em 0 .5em -1.3em;
text-indent: 0;

content: "2217 a0 a0 a0 a0 a0 2217 a0 a0 a0 a0 a0 2217";
}


Free books android app tbrJar TBR JAR Read Free books online gutenberg


Load Full (1)

Login to follow story

More posts by @Katie

1 Comments

Sorted by latest first Latest Oldest Best

10% popularity   0 Reactions

EPUB 2 specifies content as supported property in the list of CSS properties.

However, it is based on CSS 2.1, where the content property is allowed only for :before and :after pseudoelements. As the linked EPUB 3 spec shows (by linking to CSS 2.1), the same restriction applies in EPUB 3.

Thus, the code in the question won’t work, to the extent that it relies on the content property. Moving the declaration to apply to a pseudo-element, if applicable, should work in conforming software:

.TXBDINGBATS:before {
content: "2217 a0 a0 a0 a0 a0 2217 a0 a0 a0 a0 a0 2217";
}


Free books android app tbrJar TBR JAR Read Free books online gutenberg


Load Full (0)

 

Back to top