View Full Version : Main Frame - Size?


Incendio
05-07-2005, 04:52 PM
I don't know what coding this is, PHP, HTML, Java, whatsoever no idea. I am lousy at explaining but here it goes.

I think it has to do with Iframes (?). In my main frame, which is an iframe, I disabled scrolling. Now I've seen on a couple of other sites, the lenght of their main frame change, depending on the content. If they have much content, then the main frame gets longer (duh) to hold all the content, and when they have little text or content, the main frame gets shorter. Simply, it adapts after the content.

Now my iframe doesn't work that. I specified a size for it, and the size does not change whatsoever. And since I disabled the scrollbar, because I didn't want two scrollbars, some of the content gets cut off, because of the iframe size.

I dont know if the sites that I've told you about in my example, the one that their main frames adjusted after their content, if those really are Iframes, or if it's something else. I was wondering, how I could get something similar.

Now here are some examples.

http://www.magicalthree.com/hogwarts.php
http://cedric.i-shall-believe.net/
http://muggle-central.com/

coolone
05-07-2005, 06:09 PM
blah, im pretty sure non of them use iframes, from the looks of it, they r tables, or div layouts

Combat Babe
05-07-2005, 06:22 PM
The first one is using tables and divs, the last two are mostly depending on tables. A great way to find out if someone is using the type of code you are using is to go right-click>Veiw Source (or view page source, depending on the browser). This can also help you understand how to do something you might want to do in the future. It's kind of like in math, where they give you the real-life examples. Page sources are real examples of how coding can be used. Btw, the code you are using is HTML. The sites you listed were also using CSS.