Closed Thread Icon

Preserved Topic: overflow: auto (Page 1 of 1) Pages that link to <a href="https://ozoneasylum.com/backlink?for=18398" title="Pages that link to Preserved Topic: overflow: auto (Page 1 of 1)" rel="nofollow" >Preserved Topic: overflow: auto <span class="small">(Page 1 of 1)</span>\

 
Red Ninja
Bipolar (III) Inmate

From: Detroit, MI US
Insane since: Mar 2001

posted posted 04-11-2002 08:39

Anybody know a good code to substitute for the lack of support for this feature in Netscape 4? Javascript will not be frowned upon.

Thanks in advance

stinx
Bipolar (III) Inmate

From: London, UK
Insane since: Apr 2002

posted posted 04-11-2002 16:58

Depends on what you're using it for...

"auto" would imply that you want to use the defaults - no code needed in that case

If you want something to scroll, nowrap is useful for e.g. text - it will force the breaks to occur as you specify them. or try using <pre></pre> for preformatted code (although this needs a hand if it's used for anything other than code examples!)

Don't know how you would implement "clip", although if you're using frames etc, you can specify no scrolling, which will effetively clip it anyway.

stinx.


Red Ninja
Bipolar (III) Inmate

From: Detroit, MI US
Insane since: Mar 2001

posted posted 04-11-2002 17:16

What I actually want is a scrolling text box, exactly as the style sheet would do with the overflow:scroll function. However, as we all know, this does not work in Netscape 4. I am just looking for a substitute to this for Netscape.

Browser compatibility interferes with the creative process. It vexes me. I am terribly vexed.

[edit]OK. I just looked over what I wrote. It doesn't explain much... My bad. Here is what I am looking for:
I want to include a divider on a page such as this...
<div style="position:absolute; left: 300px; top:300px;width:200px; height:200px;">Text here.</div>

In this case, it would include a textbox if it were to overflow, along witha scroll bar. Not in netscape though. Instead it operates as if I had written overflow:hidden; Is there a javascript that can create a textbox with scrolling abilities? It's one of those things that I just can't surrender to not having the ability to do.

check it out here:
NetNinjas.com [/edit]

[This message has been edited by Red Ninja (edited 04-11-2002).]

mr.maX
Maniac (V) Mad Scientist

From: Belgrade, Serbia
Insane since: Sep 2000

posted posted 04-11-2002 20:54

Maybe this can help you: http://www.netscape.com/computing/webbuilding/studio/feature1999v1n3-1.html


Red Ninja
Bipolar (III) Inmate

From: Detroit, MI US
Insane since: Mar 2001

posted posted 04-11-2002 22:14

Thanks Max. You always give a lot of cool links.

That's actually a pretty cool script. It's not compatible with Netscape 6, though. I can't say why. I suppose I could just put a version detector in with the browser. Unless of course, anybody knows of anything simpler?

Emperor
Maniac (V) Mad Scientist with Finglongers

From: Cell 53, East Wing
Insane since: Jul 2001

posted posted 04-12-2002 04:23

Red Ninja: Nice link from mr.maX. You could also try some kind of scrolling layer and put the overflowed DIV in <NOLAYER> tags. You will also have to remember that overflow: auto doesn't work in Opera so you will have to keep an eye on how it behaves there (sometimes it degrades badly sometimes its OK).

Emps

mr.maX
Maniac (V) Mad Scientist

From: Belgrade, Serbia
Insane since: Sep 2000

posted posted 04-12-2002 07:12

Red Ninja, that script was written a way back in 1999, and therefore you should only use it for 4.x generation of browsers (write a browser detector), for every other browser, you should either use overflow:hidden; on <DIV> layers (IE5+, Netscape 6) or <IFRAME> which is supported by all modern browsers (it doesn't work in Netscape 4, bu it works in Opera, IE, and NN6)...


stinx
Bipolar (III) Inmate

From: London, UK
Insane since: Apr 2002

posted posted 04-12-2002 15:42

At the moment, I can only suggest using an iframe (IE) or an ilayer (NS) and put the framed text in a seperate page - but the book I have here doesn't have up-to-date specs on these two elements. Apparently, iframe is supposed to be part of the HTML4.0 spec, so maybe NS will support it by now...

stinx.


« BackwardsOnwards »

Show Forum Drop Down Menu