FAMOsa, you can find some basic info on building ebooks in
MR's Wiki, with specific info about ePubs on the
ePub page.
You can also find a great reference source that has a lot of tutorials on how CSS works at the
W3Schools website.
You can also take a look at some of the free ebooks on
MR's ePub library to see examples of how they did things.