My first recommendation is understand 'The Box Model' aspect of HTML/CSS.
This the building blocks (pun intended

) of a book.
Build little test
snippets of code to see what effect various values create.
Explore the code of things you like. Surprisingly, some complex looking effects (eg Feedbooks chapter heads) are really simple (and the inverse

is also true)