cheers neilo
excellent observation.
The div in question was in a text field from the database which (obviously) wasn't in the source code.
(Saves me right for copying and pasting without reading).
Thanks very much for your help, my sanity is now returning