This is all CSS stuff. CSS can be a bit tricky to learn but it is used in lots of thinks these days. Start with the
CSS wiki page.
I would also suggest you download this reference manual for your unit.
https://www.mobileread.com/forums/showthread.php?t=13795
Also check
EBook Publisher in the wiki. there is a list of eBooks at the bottom of the page.
Dale