Welcome to WebmasterWorld Guest from 50.19.135.67

Forum Moderators: incrediBILL

Message Too Old, No Replies

Setting an iframe to a specific spot on a webpage

     

damdog

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.

Thanks,

CMidd

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



css absolute

damdog

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.

Thanks,

piatkow

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

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



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.

rocknbil

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

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



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 . . .
 

Featured Threads

Hot Threads This Week

Hot Threads This Month