Thanks very much - a very helpful reply. Now completely de-mistified! It also explains why the buttons I was generating with js in another part of the code did not have the gap. So much to learn, and I've rather got behind since my first encounter with software, which was bits of card with holes punched in!
A talent for speaking differently, rather than for arguing well, is the chief instrument of cultural change. Richard Rorty