Generate css with offsets