We hope you enjoy your visit.

You're currently viewing our forum as a guest. This means you are limited to certain areas of the board and there are some features you can't use. If you join our community, you'll be able to access member-only sections, and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free.


Join our community!


If you're already a member please log in to your account to access all of our features:

Username:   Password:
Add Reply
html frame problem; know frames suck, but just read this
Topic Started: May 24 2005, 01:01 PM (655 Views)
Jory
Member Avatar
Member
[ *  *  *  *  *  * ]
Hey, I have a little problem.
I made this website, and now I want to put a frame in the middle of it.
this should make ik clear.

Anybody know how to do this?
(The rest of the site has no frames in it and I would like to keep ik that way)

did i just make sence? :unsure:
Offline Profile Quote Post Goto Top
 
FearKiller
Member Avatar
www.drewscripts.com
[ *  *  *  *  * ]
<iframe>

or

<div> with an auto overflow property.

Example

CSS:
Code:
 
.frame {
width: 10em;
height: 25em;
overflow: auto;
}


HTML:
Code:
 
<div class="frame">
blah blah blah yada yada yada this and that that and this.
</div>
Offline Profile Quote Post Goto Top
 
Jory
Member Avatar
Member
[ *  *  *  *  *  * ]
Would the CSS thing actually act as if it where a frame?
So that I can load another page into it?

Same goes for the iframe
Offline Profile Quote Post Goto Top
 
Gornakle
Member Avatar
Member
[ *  *  *  *  * ]
<iframe>, like the name suggests (inline frame) loads a page inline in a block. The overflowed <div> looks like an iframe (with scrollbars and such), but doesn't load an external page.
Offline Profile Quote Post Goto Top
 
Jory
Member Avatar
Member
[ *  *  *  *  *  * ]
Ok, thanks.
I'll give that a try.


EDIT:

Another question:
Is there a way to make it so that the iframe's height ajusts to its content?
Offline Profile Quote Post Goto Top
 
FearKiller
Member Avatar
www.drewscripts.com
[ *  *  *  *  * ]
Qj
May 24, 2005 01:20 PM
Ok, thanks.
I'll give that a try.


EDIT:

Another question:
Is there a way to make it so that the iframe's height ajusts to its content?

Not that I know of, but wouldn't that defeat the purpose of having an iframe? :unsure:
Offline Profile Quote Post Goto Top
 
Jory
Member Avatar
Member
[ *  *  *  *  *  * ]
Well, never mind about that.
The IFrame does what it should do, just need to make some (300) pages a bit differtent :P

*Qj goes and write some script to do that for him :yawn:
Offline Profile Quote Post Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
« Previous Topic · Technology Chat · Next Topic »
Add Reply