updated css rule implementation method.