Re: Centering again
On Mar 24, 5:10 pm, André Hänsel <an...@webkr.de> wrote:
> Hi,
>
> I have <div><a><img /></a></div>. The dimensions of the div are fixed.
>
> I want the image centered and at the bottom.
>
> Isn't there another way than this ugly thing?
> <div><table height="100%" width="100%" cellspacing="0" cellpadding="0"
> border="0" valign="bottom" align="center"><tr><td><a><img /></a></td></
> tr></table></div>
>
> Regards,
> André
The big thing in this group is give a URL not code.
I am new at CSS but what I have done is
<div style="margin: 0 auto; width: 10em;">
<img src="/img/image.gif" alt="image">
</div>
with the width being the width of the image. I don't remember why I
didn't
roll the style into the img tag and do away with the div, I'll try
that next time.
Gary
|