A
Anna
Hi all.
I have a div with a scrollbar, which contains an image:
<div style=" width:15em; height:10em; overflow:scroll;">
<img src="some.gif"/>
</div>
The image is rather small, it occupies only a small part of the div.
This way the image appears in the top left corner of a div.
I want it to appear in the center of the div.
I tried adding align:center to style, and also adding another div
inside the frst one with style="align:center", but this doesn't work.
Is there a way for div with a scrollbar to position embedded tags
in the center of a div?
Thank you in advance for your help.
Anna
I have a div with a scrollbar, which contains an image:
<div style=" width:15em; height:10em; overflow:scroll;">
<img src="some.gif"/>
</div>
The image is rather small, it occupies only a small part of the div.
This way the image appears in the top left corner of a div.
I want it to appear in the center of the div.
I tried adding align:center to style, and also adding another div
inside the frst one with style="align:center", but this doesn't work.
Is there a way for div with a scrollbar to position embedded tags
in the center of a div?
Thank you in advance for your help.
Anna