Strange bug on product page - product options

No, I know this will probably be hard to rectify without posting up the code, but I am wondering if anyone has had the same issue.



After editing my product page everything seemed to work fine and products add to the basket ok. However, when I select a product option, the image of the product disappears from where it should be, and the product details are shown at the bottom of the page 6 times.



This bug also appears on the product listings page, when an option is selected the image disappears along with the price. This leads me to think it may be something in the header code messing it up, but I can't figure out what. Any ideas?



Any help or ideas are much appreciated.

Hmm, I seem to have solved the problem - some extra line breaks in product_data.tpl seemed to be the culprit - seems very odd. Does anyone know a reason why this might happen? I'd just inserted them to make the code a bit cleaner to read and didn't break any tags with the line breaks :S.