fix css setting for encode