Adapting style to the new DOM