Add javascript stuff to add margins as required, and change style to remove borders.