 <p>Like Sinan said, you need to give the form a width and height to match the image size. </p> <p>I think you can take Sinan's code and combine it with this to expand the form's width and height to match the image size.</p> <p>Let's say your image size is 1024x768, then:</p> <pre><code>form { display: block; margin: 0 auto; width: 1024px; height:768px; } </code></pre>