DOM layout positioning using logic.