Forum Moderators: open
Does anyone know how to have a page with say a box in the middle where I want all the text to go into, however the scroll bar must be on the box in the middle so that the page borders are the same but you can view all of the text in the middle box by using the scroll bar on the page.
Thanks
By placing one within the other you can get a similar look in both IE and Netscape.
eg:
<iFrame>
<iLayer>
-- Content --
</iLayer>
</iFrame>
I'm fairly sure that this is how you get around the problem... I never use either iLayers or iFrames so I'm not 100% sure. No doubt someone who is will be along shortly!
<form name="A" method="post" action="none">
<p align="center">
<textarea style="WIDTH: 100%; BORDER-RIGHT: #000000 1px solid; BORDER-TOP: #000000 1px solid; BORDER-LEFT: #000000 1px solid; font-family:Verdana,Arial,Helvetica; FONT SIZE: 13; COLOR: #000000; BORDER-BOTTOM: #000000 1px solid; BACKGROUND-COLOR: #E6E6FA" name="S1" rows="8" cols="45">
"content"
</textarea>
</form>
There are a couple of drawbacks to using a form. You can define the text overall, but you can't add bold or italics or change fonts or add graphics, etc. And although the form looks great as defined in IE it does not look as good in Opera or Netscape. On the other side of the coin I am pretty sure the content is spidered as part of the current page, unlike an iFrame, or possibly javascript.
To be sure this is a compromise, and I would like to hear of a better way if possible.
I'm not sure about this, but I think I heard someone talk about doing this with Cold Fusion. Anyone familiar with it?
The frameset would work a bit like this:
<frameset rows="30%,*,30%" cols="30%,*,30%">
<frame src="topleft.html" scrolling="no" />
<frame src="topmid.html" scrolling="no" />
<frame src="topright.html" scrolling="no" />
<frame src="midleft.html" scrolling="no" />
<frame src="main.html" scrolling="auto" /><!-- This is the frame for the text -->
<frame src="midright.html" scrolling="no" />
...etc for the bottom row...
</frameset>
Well, if you're passionately opposed to frames (and, heaven knows, there are good reasons to be so), it certainly wouldn't be an acceptable solution. But, to be honest, I wouldn't recommend trying to put a box with a scrollbar in the middle of the screen at all. But if you are going to do it, <iframe> isn't supported by Netscape 4, CSS overflow property isn't supported by Netscape 4 or (if memory serves) Opera -- what choice is there?
You can make the same effect as an iframe for nn4.x, scrollbars and everything. All the scrollbar buttons are images though. Its a really nasty large peice of j/s code. And its not that well written, so good luck working out how it works. I've had someone spend over a week rewriting it so I can use it for some more custom stuff. But it CAN be done.