generalize the table divs and css