If you have fixed the size of your
DIV
to 302x302 which is outside the image tag then what ever the size of the image will be it will not exceed avobe than 302x302 dimensions. You can put the
style="overflow: auto;"
of the
DIV
, so the
Scrollbars
will be visible, if the image size is greater than 302x302.
or
You can also fix the size of the image same as the
DIV
size.(302x302)
Thanks
Ashish