View Full Version : Centering question....


Redkaven
02-25-2003, 09:01 PM
I'm working on making a homepage that looks good in different types of resulations 800 x 600 and up.

I have an Iframe in the middle. What code would I use to center it horzionally and vertically?

Rough example:

<TABLE WIDTH="100%" HEIGHT="100%">
<TR>
<TD></TD>
<TD><IFRAME></TD>
<TD></TD>
</TR>
</TABLE>

Thanks in advance,

-Redkaven

epolady
02-25-2003, 09:27 PM
<TABLE WIDTH="100%" HEIGHT="100%">
<TR>
<TD valign="middle" align="center">
<iframe src="abc.html" width="##" height="##"></iframe>
</TD>
</TR>
</TABLE>

will vertically & horizontally center the iframe. There wasn't a need for the extra <td> tags that you had. HTH.

Redkaven
02-25-2003, 10:26 PM
K, thanks much!

I don't have time to try and see if it works well right now. I'll get back to you tomorrow on it.

Thanks again,

-Redkaven