ignore blank nodes before and after center when replacing it by CSS