View Single Post
Old 08-01-2016, 02:45 PM   #23
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 8,809
Karma: 6000000
Join Date: Nov 2009
Device: many
Tried your updated bug epub and the url is properly updated.
That said, your css is simply wrong:

Pseudo-Elements are done as follows:

Code:
selector::pseudo-element {
    property:value;
}
Note the double colons before the pseudo-element.

Also the pseudo-element "::before" does not exist or validate in CSS 2.1 but does validate for epub3.

Also as anything *before* the initial heading element in your example has no vertical size, no background image is displayed (as the image height would be 0).

So changing that css to something along these lines is what I think you want:

Code:
h1::before {
    content: url('../Images/gold-aureus.jpg');
    display: block;
}
This shows the image you want nicely before every h1 in the document.

So there is no bug here that I can see.

KevinH
KevinH is online now   Reply With Quote