|
position an iframe in the center of the page? does anyone know how to simply position an iframe in the center of the page? i'm trying to make the code as simple as possible. the iframe is just in the center of the page but at the top
example picture:
[Link](Mouse over link to see full location)
this is my code:
<head>
<html>
<center>
<IFRAME name="inlineframe" src="main.html" width=400 height=300 marginwidth=0 marginheight=0 frameborder=0 scrolling=auto></IFRAME>
</center>
</head>
</html>
[ ] Want to answer more questions in the Technology category? Maybe give some free advice about: Internet & Web Design?
This is the least elegant thing that you'll see, but it does work: How about inserting a few of these, below, until you have it where you need it? Or even, perhaps, put it in a table and center the whole thing:
<head>
<html>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /><center>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<IFRAME name="inlineframe" src="main.html" width=400 height=300 marginwidth=0 marginheight=0 frameborder=0 scrolling=auto></IFRAME>
</center>
</head>
</html> ]
More Questions: |