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

Home / Forums Index / WebmasterWorld / New To Web Development
Forum Library, Charter, Moderators: brotherhood of lan & mack

New To Web Development Forum

    
Center Contents of Iframes
How to Center the Content of an I Frame
thinktanker

5+ Year Member



 
Msg#: 4085319 posted 4:53 am on Feb 23, 2010 (gmt 0)

Is this do-able with <iframe> ? Center content




I want to adjust (center) the source webpage in iframes.. Also knowing how to adjust up and down, if possible, would be nice. If no solution is availble, is there any other option? I was thinknig like using the object element be used instead of iframe tag for this



Anyone know this one?

 

rocknbil

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



 
Msg#: 4085319 posted 7:41 pm on Feb 23, 2010 (gmt 0)

The iFrame is another page, you'd apply margin:auto to the content that goes in there. If you have no control over the content, I doubt there's much you can do. Cross-frame security policies prevent you from doing anything to an iFrame'ed page, unless it exists on the same domain.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / WebmasterWorld / New To Web Development
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