Grid drawing fixed with CSS changes