Did you know that most ereaders handle lists quite nicely? Here are some screenshots from a Kindle Paperwhite of one of my projects:
Tidy, eh? The best thing is, lists are very easy to do with css and html.
There are two types of lists: Ordered and Unordered. Ordered lists use numbers or letters to mark list items; Unordered lists use symbols such as bullets. The html tags: <ol> for ordered lists; <ul> for unordered lists; <li> for list entries.
For some reason ebooks don’t care for type declarations in the html. The EPUB validator issues klaxon call warnings about that. I have found best practice is to declare the styles in the css stylesheet then assign classes.
Styling in css:
You can have fun with lists, too. Lists can be nested–perfect for complex Tables of Contents. And take a look at the screenshot where it says Add a Fancy Symbol. The fast and simple way is to make an unordered list with a style declaration of “none” and then insert a named entity (in this case, the right arrow).
You can tart up your lists with circles, squares, Roman numerals, and even images. To learn more, the w3schools site has all the information you need. For list type properties, go here. Just keep in mind that ebooks don’t like the “type” declaration, so use either “class” or “style.”
Have fun!
Okay… I just had a seizure. You may as well be speaking Greek. No, wait, I’d understand Greek much better than what you just said. I swear.
You can even make lists with Greek characters for markers. list-style-type=”lower-greek”. Then you can understand it, right? 😀
Maybe. I recently discovered I understand Finnish. Very weird. Must be a past life thing.
Ah, this is why there’s that expression that one can know enough to be dangerous. I’ve always known about lists tags, but didn’t realize there was more than one nor that there were certain tags not compatible with epub. Thanks for the info!
The really fun part is that even when they say something is supported or unsupported, sometimes they LIE. Here is a list of supported tags via Amazon https://kdp.amazon.com/help?topicId=A1JPUWCSD6F59O
I’ve learned to double-check and test because…sometimes they lie. Heh. Trial and error is my best friend.
Good resource. And you are right about the testing. I wish I had more ebook devices to do the testing bit properly. Though the online simulators do seem to work well.
Your list article gave me the needed tips on list formatting and why the type declaration messed my lists up!
😀
reminds me of my homework when I got it back from teach, there was always red marks on it, but I never read any of those comments either!
Huh. Back in school, Tom, I always obsessed over the red marks to figure out how to fix them. A portent of things to come, eh?
Sorry, messing around with my computer Jaye. Not much new…