HTML Tutorial


 Forum HomeForum Home   FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
RegisterRegister - Not registered yet? Got something to say? Join HTML Code Tutorial!
Alternative to iframes for web page previews?
Post new topic   Reply to topic    HTML Help Forum Index -> HTML Frame
View previous topic :: View next topic  
Author Message
TWilsonRipsom



Joined: 21 Apr 2008
Posts: 4

PostPosted: Mon Apr 21, 2008 9:18 am     Alternative to iframes for web page previews? Reply with quote

Is there an alternative to iframes for having a functional preview window for another page showing on an HTML/CSS page? If so can they be as easily sized and positioned as an iframe? Do you have the coding to do it?
Straystudio



Joined: 14 Apr 2008
Posts: 238
Location: Nord Italy

PostPosted: Mon Apr 21, 2008 10:09 am     Reply with quote

It is great the 'old' and not-much known:

<div style="height: ; width: ; overflow: auto;">
</div>


But You can NOT call a web page else via URL to appear inside that div.
You put content inside the div tag, in writing the document
and the overflow: auto; will do the trick to make vertical and horizontal scroll-bars to appear, based on the content and the size You assign the div.

Play with pixel, at first; if so, overflow: auto; works everywhere.
Sizing the div in percentuage instead, won't works if You place it inside a table cell.
Strange a thing, many many ones crashed their head on ...
TWilsonRipsom



Joined: 21 Apr 2008
Posts: 4

PostPosted: Mon Apr 21, 2008 10:16 am     Reply with quote

Unfortunately, I need to have another page opening in the frame but every time I load the page it jumps to that frame instead of jumping to the top of the page.
Straystudio



Joined: 14 Apr 2008
Posts: 238
Location: Nord Italy

PostPosted: Mon Apr 21, 2008 10:33 am     Reply with quote

It shouldn't do !

By the way, there is some <a href="#"></a> to <a name=""></a> anchor in play ?
These ones yes, tend to align to the top if page is heigh enough to get scrolling rail.

Have a look if the URLs end with #(stuff), the main-page URL and the URL You entered in the iframe to be called.

An other cause might be kind of style="position: ;" in some element; but I think this as the last.
 
TWilsonRipsom



Joined: 21 Apr 2008
Posts: 4

PostPosted: Mon Apr 21, 2008 12:32 pm     Reply with quote

Thanks, that was the problem. It was going to an anchor tag within a page. Now I just have to figure out how to get it to that part of the page in the i-frame without messing with the master page position.
Display posts from previous:   
Post new topic   Reply to topic    HTML Help Forum Index -> HTML Frame All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
HTML Help Archive
Powered by phpBB © 2001, 2005 phpBB Group
HTML Help topic RSS feed 

 
HOSTING / DESIGN
MAKE MONEY

Home
  |   Tutorials   |   Forum   |   Quick List   |   Link Directory   |   About
Copyright ©1997-2002 Idocs and ©2002-2007 HTML Code Tutorial