apply table with style.