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

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:4285608
 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:4285633
 12:21 pm on Mar 22, 2011 (gmt 0)

css absolute

damdog




msg:4285782
 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




msg:4286182
 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




msg:4287477
 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