place the image within a single celled table that is set to the width / height
of the layer. you can then tell the cell to valign="middle" and align="center"
and this should allow you to place it in the center of the layer.

Nick Pelling wrote:

> Hi everyone,
>
> I need to vertically align an IMG in a dynlayer.  This appears easy on
> recent browsers, but not on earlier ones - is this correct?  At the moment,
> my code looks like:-
>
>         lay = new DynLayer();
>         lay.setHTML('<center><img src="Images/000001.gif"></center>');
>
> ..which horizontally centers each image fine: but how to do the vertical
> equivalent?
>
> The best suggestion (from an old thread) would seem to be to insert a 1x1
> transparent shim.gif above this image (but scaled to the appropriate
> height). But this relies on the main image having been completely
> pre-loaded: and it's also quite clunky.
>
> When you hit this same problem, what did you do? How did you vertically
> align your images while keeping wide cross-browser compatibility?
>
> Thanks very much! .....Nick Pelling.....
>
> _______________________________________________
> Dynapi-Help mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/dynapi-help

--
Michael Pemberton
[EMAIL PROTECTED]
ICQ: 12107010




_______________________________________________
Dynapi-Help mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/dynapi-help

Reply via email to