 |
|
|
| View previous topic :: View next topic |
| Author |
Message |
TWilsonRipsom
Joined: 21 Apr 2008 Posts: 4
|
Posted: Mon Apr 21, 2008 9:18 am Alternative to iframes for web page previews? |
|
|
|
| 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: 92 Location: Nord Italy
|
Posted: Mon Apr 21, 2008 10:09 am |
|
|
|
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
|
Posted: Mon Apr 21, 2008 10:16 am |
|
|
|
| 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: 92 Location: Nord Italy
|
Posted: Mon Apr 21, 2008 10:33 am |
|
|
|
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
|
Posted: Mon Apr 21, 2008 12:32 pm |
|
|
|
| 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. |
|
|
|
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
|
|
|
|
|
 |
|
|
|
|
|
|