update css for passing object properties