remove css after copying it out of attrs