View Full Version : iframe and scrolling
llorax
03-19-2007, 06:28 PM
I have an Iframe that is positioned under a div.
background-color: #000;
position: absolute;
top: 416px;
left: 5%;
width: 760px;
height: auto;
padding-left: 6px;
scrolling: no;
I have the iframe using a different page as its src and because of that the height is not the height of the other page but the height as if there was nothing in the frame. What do I do?
killerchutney
03-19-2007, 06:52 PM
1st : Don't use I frames, PHP includes are much better.
2nd: can you post the Iframe's code.
llorax
03-19-2007, 07:07 PM
Sure, I hate iframes but I don't know how to insert another page into the code. The iframe code is:
<iframe id="content" src="http://www.killconrad.com/blog/" marginwidth="0" marginheight="0" hspace="0" vspace="0" frameborder="0" scrolling="no">
</iframe>
killerchutney
03-19-2007, 07:12 PM
<iframe id="content" src="http://www.killconrad.com/blog/" marginwidth="0" marginheight="0" hspace="0" vspace="0" frameborder="0" scrolling="no">
</iframe>
and
position: absolute;
top: 416px;
left: 5%;
width: 760px;
height: auto;
padding-left: 6px;
scrolling: no;
that might work.
llorax
03-19-2007, 07:29 PM
That is what I have for the coding as of right now. But since the src is a different file, it doesn't make it the right height.
Is there another way to put a separate page as content without iframes. I don't think it's going to work.
killerchutney
03-19-2007, 07:58 PM
but if you changed the home page to index.php (it will still be counted as a homepage), you could use this code:
<?PHP include ("http://www.killconrad.com/blog/index.html") ?>
inside the div.
mburt
03-19-2007, 08:15 PM
URL File Access has to be enabled on your server for http protocols.. Local files are fine:
<?php include "index.html"; ?>
killerchutney
03-19-2007, 08:18 PM
oh, lol. I didn't know about URL file access, I tried it and it worked on my host so I thought that it would be the same for everyone. So yes llorax use:
<?php include "index.html"; ?>
(I missed out the ; as well.)
Powered by vBulletin® Version 4.2.2 Copyright © 2021 vBulletin Solutions, Inc. All rights reserved.