View Single Post
Old 12-31-2024, 07:59 AM   #3
xtraktor
Enthusiast
xtraktor began at the beginning.
 
Posts: 29
Karma: 10
Join Date: Mar 2017
Device: Kindle Voyage
Quote:
Originally Posted by theducks View Post
just add the font-family: "xyz, serif"; to the style= list

I always consider these kinds of hacks, to be fragile.
They probably will NOT get updated correctly if the TOC is regenerated automatically.
If I add to the h2 style this way:

<?xml version='1.0' encoding='utf-8'?>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Content</title>
<style type="text/css">
li { list-style-type: none }
a { text-decoration: none }
a:hover { color: red }


</style>
</head>
<body id="calibre_generated_inline_toc">
<h2 style="text-align: center; font-family: Gabriel Weiss' Friends Font, sans-serif;">Content</h2>

indicates this error: Parsing failed: attributes construct error, line 14, column 73 [contents.xhtml:14]

What's the correct syntax?
xtraktor is offline   Reply With Quote