Thread: CSS Question
View Single Post
Old 11-12-2020, 06:27 PM   #47
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 47,054
Karma: 169810634
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Quote:
Originally Posted by deback View Post
Okay, never mind. I was thinking that I had a problem with using "em" after 0 at some time in the past, but it doesn't seem like it would make any difference, since the default for all rules is zero, I believe (that is, when any rule doesn't exist for any class in the CSS file, Calibre and eReaders will assume the value is zero). Any tests that you performed were meaningless, due to the zero default for all rules. The only way to test this is to do a Check Book to see if Calibre finds an error when adding "em" after a zero.

And, by the way, using 0em for any rule has nothing to do with multiplying 0 by anything, so I have no idea why you would mention that, since it wouldn't apply in this discussion.
In my test epub, the page had alternating values of 0 and whatever I felt like setting the measurement to. This let me see what effect the values had.

As for the multiply by zero? Any unit of measurement multiplied by 0 is 0. If CSS understood furlongs, I could specify indents in furlongs but 0 furlongs is the same as 0 in any other unit of measurement from the Planck length to parsecs.

Rather oddly, I could set indents in any of the units I used and they applied which makes understanding how your statement about default values being zero was applicable to this discussion.
Attached Files
File Type: epub indented.epub (2.3 KB, 175 views)
DNSB is online now   Reply With Quote