update inline grid styles