use a div for each message with a typed class