If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

The thing is... that I link to one of the starting pages and from there, people can click on links or linked images that will lead to another page, which is loaded into the same frame.

However, these pages don't all have the same size. I do not work (at least for these pages) with SQL, so is there another possibility? If not, how do I use the SQL? I'd prefer it if the page resizes to the maximum length of the pages it has to load. That way, I don't get the horrible scroll bar.

Also, there is a border around the frame. Is there a way to get rid of it? I know I can say border none or border size 0, but that way, it'll still leave some traces of a border, so then it's better to have a recognisable border.

Same answer. Just use width and height set to auto. Or leave them off at all. default is set to auto. Remember though your iframe is inside your page, which has borders even if you set them to 0. (borders like edges of the page, not like colored decorations). Therefore the iframe has a size limit set automagically before a scroll bar is introduced. Basically the page the iframe is on is only so big, but if you pull in a page that is set to a larger size then the iframe can stretch in it's own internal limits you will have a scroll bar. You can set overflow to hidden, but then the content wont be 100% viewable.

As for the colored type borders, just use CSS to style the iframe just as you would any element. iframe by itself is a CSS ready element, so it doesn't need a container p or div...

well, the reason I asked... is cos that doesn't work. it works for the width, but not for the height.

When I use your suggestion (through a css in the document, an external css file and inside the iframe code line), I just get a small iframe and the horrid scroll bar since the pages are longer than the iframe.

I cannot put the css lines in the documents that'll be inserted in the iframe, but it has to go on the main document, right? Well it seems as if the document doesn't know how long the file is, since I get the same height (with height:100% and height:auto) with all the documents (which is about 150px and I need at least 1500px for most of the pages).

That was why I asked, I was hoping there was another way to do this, since this option doesn't work.

Thnx for the reply, I hope you got another option, if not, I'll need to stick with a fixed height and ignore the fact that there are about 30 pages (out of 250) that have a height of around 300px instead of the approximately 1500px for the rest.

Of course I had already deleted the styling part in the iframe code itself.

And the whole reason why I asked this, is because some of the pages only need a height of 300px (approximately) instead of the 1500px for most of the other pages. And all are approximately.

Meaning, on a whole lot of pages, there's a (big) empty space at the bottom. So therefore, I asked if it were possible to get an auto height, so I won't have any blank space that isn't filled, but just stretches the page.

Also, I've got a 'back' button on the pages, which automatically goes to the last visited page. However, if I was on a long page when I press the back button, and I go back to a short page, I view the blank space of the previous page. So if there would be an auto height, I wouldn't be viewing blank space.

I hope you understand what I'm saying. And I don't really know why it's not working...

Anyway, I've been searching the web endlessly for a solution, but I still haven't found anything that works in IE, FF and Chrome at the same time. I do have a solution for IE or Chrome, none for FF and still none for all three of them. (disregarding the rest of the browsers).

I understand that I've reached your limits of knowledge at this point, but maybe you can help me out with something else.... Well, a little bit different then... haha

The only way I am using a frame, is because I've got a whole lot of pages (app. 1000 pages or even more) I need to load into my site. My site is build with Joomla, so creating all of those pages is a lot more work then copy and paste the code in basic html.

So, I only need SOMETHING to add this into my main page. Is there something else I can use to add a page into another page, except iframes? If there's another way to do this, maybe I'll/we'll find a solution for the page height sooner.