modified css style function