Use css background to generate lines instead of using dom