Fixed some CSS problems and BBCode output (to be valid)

Read more at the description of each commit.