Thanks-The theme was the problem. This is a popup, not a regular page, so the theme that is normally specified in the header wasn't specified. I included the theme and now it works.
I just had no idea that linked images automatically got a border put around them if no style was specified. Learn something every day.
General developer forum
Why this odd little border?
This discussion has been locked so you can no longer reply to it.