homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Visit PubCon.com
Home / Forums Index / Code, Content, and Presentation / HTML
Forum Library, Charter, Moderators: incrediBILL

HTML Forum

Setting an iframe to a specific spot on a webpage

 11:41 am on Mar 22, 2011 (gmt 0)

I have my iframe working, the problem I am having is I need code to point it to a specific spot on the webpage I have in the iframe. The webpage in the iframe is an external site.




 12:21 pm on Mar 22, 2011 (gmt 0)

css absolute


 4:23 pm on Mar 22, 2011 (gmt 0)

Can you provide an example, I am not sure what command to use to start the css.



 10:14 am on Mar 23, 2011 (gmt 0)

W3Schools have tutorials on CSS. The trouble is that if you learn CSS as an "extra" after learning html it can seem difficult and over complicated. Really its teaching should be integrated with html teaching from the beginning.

The quick and dirty solution of course is to use a table.


 4:51 pm on Mar 25, 2011 (gmt 0)

Why can't you put it in a div?

#iframe-container { width: 400px; height: 500px; margin: 0 auto; }


<div id="iframe-container"><iframe src="https://www.example.com"></iframe></div>

You'll have to play with style, but that should work . . .

Global Options:
 top home search open messages active posts  

Home / Forums Index / Code, Content, and Presentation / HTML
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved