It looks fine to me. What do you feel is not right about it?

The query code and the HTML could be tidied a little (starting by separating the CSS into its own file) but they are not "wrong" per se.