NB: I figured this out, but am not able to delete the thread? Oh dear.
A fiddle is here: http://jsfiddle.net/rohafine/Gn5Ca/
I don't know if posting a fiddle is sufficient here, but I hope so. Otherwise I can copy the code in.
Thanks for anyone's patient help for a beginner!