generate style method of pinning table