Handle DIV elements