View Single Post
Old 02-09-2019, 09:27 AM   #1
patrik
Guru
patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.
 
Posts: 683
Karma: 4568205
Join Date: Jan 2010
Location: Sweden
Device: Kobo Forma
Preview shows hr lines differently

I noticed that two horizontal lines, with the same code, looked different in Sigil Preview. One line was thicker than the other.

But on my ereaders & in Calibre they were the same. Also the same in Sigil book view.

More of a curiosity, but I thought I would mention it.


html:

<h1>Title</h1>

<hr class="w50" />

<h2>Subtitle</h2>

<hr class="w50" />

css:

h1 { text-align:center; }

h2 { text-align:center; font-size:2em; }

hr.w50 { height:0.1em; border:white; background-color:black; width:50%; margin-left:25%; }


After testing I noticed it's the font-size element in h2 that makes the difference. If I set the size to 1em, the lines are the same. If I set it to something larger than 1, it gets thicker, but stays the same for any larger font-sizes.

(Sigil 0.9.10 on Linux)
Attached Thumbnails
Click image for larger version

Name:	hr-lines.png
Views:	122
Size:	4.9 KB
ID:	169601  
patrik is offline   Reply With Quote