Distance calc and bit of css experimentation