improved css layout of chart