Not sure what that code's doing - the html output is definitely okay: http://i.imgur.com/kyIKfnn.png