Add horizontal option to HTML legend