Free AdviceGet Free Advice
Home | Get advice | Give advice | Topics | Columnists | - !START HERE! -
Make Suggestions | Sitemap

Get Advice


Search Questions

Ask A Question

Browse Advice Columnists

Search Advice Columnists

Chat Room

Give Advice

View Questions
Search Questions
Advice Topics

Login

Username:
Password:
Remember me
Register for free!
Lost Password?

Want to give Advice?

Sign Up Now
(It's FREE!)

Miscellaneous

Shirts and Stuff
Page Backgrounds
Make Suggestions
Site News
Link To Us
About Us
Terms of Service
Help/FAQ
Sitemap
Contact Us


position an iframe in the center of the page?


Question Posted Monday May 24 2010, 8:22 pm

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>


[ Answer this question ]

Additional info, added Monday May 24 2010, 8:23 pm:
the first example is what i have
the second is what i want
.

Want to answer more questions in the Technology category?
Maybe give some free advice about: Internet & Web Design?


CynanMachae answered Monday May 31 2010, 7:43 pm:
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>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<IFRAME name="inlineframe" src="main.html" width=400 height=300 marginwidth=0 marginheight=0 frameborder=0 scrolling=auto></IFRAME>
</center>
</head>
</html>

[ CynanMachae's advice column | Ask CynanMachae A Question
]


More Questions:

<<< Previous Question: Advice for a strange guy looking for a nice girl?
Next Question >>> I want to lose some weight?

Recent popular questions:
Want to give advice?

Click here to start your own advice column!

What happened here with my gamer friends?

All content on this page posted by members of advicenators.com is the responsibility those individual members. Other content © 2003-2014 advicenators.com. We do not promise accuracy, completeness, or usefulness of any advice and are not responsible for content.

Attention: NOTHING on this site may be reproduced in any fashion whatsoever without explicit consent (in writing) of the owner of said material, unless otherwise stated on the page where the content originated. Search engines are free to index and cache our content.
Users who post their account names or personal information in their questions have no expectation of privacy beyond that point for anything they disclose. Questions are otherwise considered anonymous to the general public.

[Valid RSS] eXTReMe Tracker