View Single Post
Old 01-22-2024, 10:58 PM   #7
iouzzr
Junior Member
iouzzr began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Jan 2024
Location: Beijing, China
Device: none
Quote:
Originally Posted by DNSB View Post
Have you looked at the CSS of the ebook to see how the font-size is arrived at? Also note preview in the editor only uses that font size when the ebook CSS/inline styles do not define a font size.
I extract the .epub and open the chapter using my browser. I inspect the yellow highlighting part:

So I think this part of CSS is controlling the font-size:
code {
font-family: Courier, Courier New, monospace;
font-size: small;
}

So if I set "default font size" to 20 in the Calibre editor preview's settings, the font size of the "code" part will be smaller than 20?

---------

"Also note preview in the editor only uses that font size when the ebook CSS/inline styles do not define a font size."

I don't quite understand. Does the above "code" CSS qualified as "ebook CSS/inline styles define a font size"?

P.S. I uploaded the CSS and HTML to ch06.zip.
Attached Thumbnails
Click image for larger version

Name:	屏幕截图 2024-01-23 114413.png
Views:	114
Size:	333.3 KB
ID:	205981  
Attached Files
File Type: zip ch06.zip (50.3 KB, 152 views)

Last edited by theducks; 01-23-2024 at 01:47 PM. Reason: inline large image removed
iouzzr is offline   Reply With Quote