[IMP] improved snippet attribute and css