Hummy
09-27-2004, 12:32 PM
I would like to create an iFrame, 700px by 400px positioned in the Center of the Page (Vertically and Horizontally). How would I do that? I don't want to use Absolute positioning, because I'd like it to appear in the center regardless of the Browser Size. Any help would be greatly appreciated.
Chris
09-27-2004, 12:37 PM
Try using the following code:
<div align=center valign=center>iframe code goes here</div>
Chris
Hummy
09-27-2004, 12:50 PM
Unfortunately that doesn't seem to work.
kittycat
09-27-2004, 02:46 PM
You could use a table:
<table width="100%" height="100%">
<tr>
<td valign="middle" align="center">iframe code</td>
</tr>
</table>
Or take a look at this page (http://www.quirksmode.org/css/centering.html), but you still need to use a table to get vertical centring.
Hummy
09-27-2004, 04:56 PM
Thank you, that was very helpful I really appreciate it!