> > 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:-
At 16:06 03/07/01 +1000, Michael Pemberton wrote:
>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.
This worked perfectly, thanks! For the record, here's the final code:-
var s = '<img src="Images/000001.gif">';
s = '<td align="center" valign="middle">' + s + '</td>';
s = '<table width="100%" height="100%" border="0"'
+ 'cellspacing="0" cellpadding="0">' + s + '</table>';
lay.setHTML(s);
Cheers, .....Nick Pelling.....
_______________________________________________
Dynapi-Help mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/dynapi-help