HTML frame - moving an image location in a frame?

ash

New member
I am making a website for school and i have it where there is a picture link on the side frame, and when you click on the picture, it opens(as a bigger image, same picture) in the frame next to it(called "main"). how do i adjust the picture in the main frame so it is centered in the frame? Hopes this makes since..?
 
For cross browser compatibility set margin: auto for a "wrapper" element and text-align: center for the element containing the image.

Here is an in-line example:

<div stye="margin: auto">
<div style="text-align: center">
<img src="TheImage" />
</div>
</div>

The outer DIV essentially clears the way for the nested DIV to center the image.
 
Back
Top