Welcome to WebmasterWorld Guest from 54.196.214.35

Forum Moderators: incrediBILL

Message Too Old, No Replies

Setting an iframe to a specific spot on a webpage

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

New User

joined:Mar 22, 2011
posts: 2
votes: 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.

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

Junior Member

joined:Mar 5, 2011
posts: 198
votes: 0


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

New User

joined:Mar 22, 2011
posts: 2
votes: 0


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

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

Senior Member

WebmasterWorld Senior Member piatkow is a WebmasterWorld Top Contributor of All Time 5+ Year Member Top Contributors Of The Month

joined:Apr 5, 2006
posts:3285
votes: 12


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)

Senior Member

WebmasterWorld Senior Member rocknbil is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Nov 28, 2004
posts:7999
votes: 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 . . .