homepage Welcome to WebmasterWorld Guest from 54.163.84.123
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor 2014
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
damdog



 
Msg#: 4285606 posted 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



 
Msg#: 4285606 posted 12:21 pm on Mar 22, 2011 (gmt 0)

css absolute

damdog



 
Msg#: 4285606 posted 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

WebmasterWorld Senior Member piatkow us a WebmasterWorld Top Contributor of All Time 5+ Year Member



 
Msg#: 4285606 posted 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.

rocknbil

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



 
Msg#: 4285606 posted 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