Quote:
Originally Posted by DiapDealer
Did you, perhaps mean, "part of the same EPUB"? I only ask because you don't have to link styles that part of the same HTML page. You only have to link stylesheets to html pages when they ARE, in fact, separate documents/files.
|
That's exactly what I meant - same EPUB. Just for background - what I did was go to
https://chrisbracco.com/a-simple-css-tooltip/, which has separate codes for the HTML and the CSS. I first copied the CSS, opened Sigil and, in a new EPUB, pasted the CSS code in an HTML sheet; went back to the site, copies the HTML code, back to Sigil, pasted the HTML code in the same HTML sheet as the CSS - and it all worked.
Test 2 - created yet another new EPUB in Sigil. Pasted the HTML code in a new HTML sheet; then went to Add/Blank Stylesheet, pasted the CSS code in that new Stylesheet: this time it didn't work.
Finally, using the advice above, went to the HTML sheet, clicked on Link Stylesheets, linked the new Stylesheet - and, lo and behold, it worked again!
As I mentioned, it doesn't make sense to me that Sigil won't do the linking by itself (to Styles in the same EPUB), but this is where it seems to be.