Copy link to clipboard
Copied
Hi,
I am exporting to Epub (Reflowable). Found out the numbered and bulleted lists are not working as arranged. Some would misalign with more indent.
Anyone knowing how to fix this?
This is how it looks in Indesign.
This is how it looks in Epub reader.
Thank you.
Copy link to clipboard
Copied
How have you created the numbered list and the bullets?
@James Gifford—NitroPress can you help on this one?
Copy link to clipboard
Copied
Bullet lists from ID into EPUB are a PITA.
This is because InDesign doesn't export (CSS) padding values, at all; (almost all) proper bullet list spacing in HTML/CSS relies on padding. Furthermore, ID formatting often relies on tabs, which don't export to EPUB (or HTML) either. There is no simple answer short of creating CSS style definitions for your bullet list items.
You can fix some of it with careful juggling of the style spacing and use in ID, but writing some CSS definitions that overwrite the incomplete ID defaults is better.
Here's the basics:
CSS Spacing for Lists
There is also an alternate export option that turns lists from simple ol and ul entities to completely formatted HTML stacks, and you can apply CSS formatting to each element of that to get more control as well as fancy overrides like differently-colored bullets.
If you can't sort that out, ask further questions, or, there is considerable material on this in the Guide (see sig). It's a headache to get simple bullets and numbers to work right, and more so if you have any multiple-level lists.
Copy link to clipboard
Copied
Thank you for the reply.
The numbered list and bullets are created through paragraph style.
Is the style spacing mentioned same to what I was doing as above? Frankly, I do not have any idea of CSS formating yet. Yes, it will be good to have some guidelines how to get the right start.
Thank you.
Copy link to clipboard
Copied
Getting into CSS styling is a big, separate leap but it gives you great control over the details and allows you to do some things that nothing the ID export will. But all you have to do is write a CSS file and tell ID to use it on export... all of the difficulty is in writing that CSS code.
Here is a very basic start. Save this as BULLETS.CSS (or whatever) and put it in your book file folder.
In export, under HTML & CSS, add it to the list of additional CSS files. You only have to do this once. ID will read and apply it to the export file until you remove it, and you keep editing the values until you get the results you want.
BULLETS.CSS
ol, ul { margin: 0; padding: 0; }
li.BULLETSTYLENAMEHERE {
margin: 10px;
padding-left: 10px;
}
li.NUMBERSTYLENAMEHERE {
margin: 10px;
padding-left: 10px;
}
This will zero out spacing around the list "box," apply a 10px box around each list element, and space the left margin of the text in 10px from the bullet or number. Adjust these values as you like until you get something close to the result you're looking for.
The style names MUST match exactly, in spelling and capitalization, or they won't be applied. Use a hyphen for any spaces. (that is, My Bullet Style should be entered here as li.My-Bullet-Style .)
And yeah, this is the simple start. 😛
Find more inspiration, events, and resources on the new Adobe Community
Explore Now