View Single Post
Old 11-27-2021, 09:41 PM   #1
Bigo2
Zealot
Bigo2 can load mercury with a pitchforkBigo2 can load mercury with a pitchforkBigo2 can load mercury with a pitchforkBigo2 can load mercury with a pitchforkBigo2 can load mercury with a pitchforkBigo2 can load mercury with a pitchforkBigo2 can load mercury with a pitchforkBigo2 can load mercury with a pitchforkBigo2 can load mercury with a pitchforkBigo2 can load mercury with a pitchforkBigo2 can load mercury with a pitchfork
 
Posts: 130
Karma: 48786
Join Date: Oct 2010
Location: Australia - Adelaide
Device: Kindle3
Numbered list help

Hi - sorry if I'm repeating something what was already discussed here...
I created a numbered list in my epub file using negative top margin.

<p class="calibre1">1.</p> /then the text related to the number/
<dd style="margin-top: -18px;">Example text one</dd>

the next list number:

<p class="calibre1">2.</p> /and then the related text/
<dd style="margin-top: -18px;">Example text two</dd>

And so on…

It seems quite simple, works OK... until I open the epub in a reader - the numbers and the related text usually became crooked – vertically misaligned…
How can it be fixed so that the numbers will be always in line with the related text when opened on any device ?

Thanks
Bigo2 is offline   Reply With Quote