I need to display several images in the content area of a page, and when a user clicks on an image, it should enlarge using fancybox.
If an image is large, the user should be able to click on it to view an enlarged version in a fancy box.
Both the thumbnail and the larger version of the image must be the same.
I attempted to add inline styling to the image so that it displays at 200px in the content area and enlarges when clicked. However, this does not seem to be working as the image remains the same size in the fancy box.
<div class="wrapper">
<p><img src="http://farm4.staticflickr.com/3864/14420515212_9999c800b4_b.jpg" style="float:right; padding:5px; width:200px;" class="zoom"></p>
Vivamus nisi neque, finibus quis ex et, lacinia aliquam ipsum. Nullam ut malesuada nulla, vel pulvinar arcu. Nulla accumsan dolor sed faucibus accumsan. Aliquam non nulla lectus. Sed</p>
</div>