Made pagination work. Tidied CSS.