Forum Moderators: open

Message Too Old, No Replies

Netscape scrollbars missing

I am TOTALLY baffled...

         

mivox

12:01 am on Apr 28, 2001 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



OK, I'm trying to do a new site design [absak.com]... The head, body and foot of each page are separate tables. The body table is very simple, & comes first in the html. The header & footer are called via SSI, and positioned via CSS. (I had to kludge the positioning for NN4.X by inserting <LAYER> tags...)

The page works great in IE-Win/Mac and Opera-Win <added>and even in Netscape 6!</added>... But in NN4.X (both Win/Mac - which a good number of our visitors use) the left hand scroll bar is missing on the page. If you re-size the browser window small enough that you'd have to scroll down to the bottom of the page, there's no scroll bar to scroll with. Certainly a bad thing for our longer pages, and smaller-monitor visitors...

Can any NN users/CSS experts tell me why the NN scroll bar diappeared? Other than that bug, they layout allows our pages to resize to fit most monitors, allows positioning of the 'real' page content at the top of the HTML, and allows me to use a single header and footer file across 99% of my pages... all very good things.

As much as I'd like to say, "if NN 4 is THAT standards incompliant, forget it," it's a business site and we can't afford to alienate visitors.

tedster

3:33 am on Apr 28, 2001 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



mivox, I do get a scroll bar on that page in Netscape 4.7 on Windows! Just add that report to your pile of bafflement.

I'll definitely be watching this thread closely. I have a page where some Netscape users report no scrollbars, but I can't reproduce the effect. Maybe your answer will help me find my answer.

DaveAtIFG

5:34 am on Apr 28, 2001 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Same here Tedster, looks fine in NS 4.77. I suggest you two might want to get more specific about which versions of NS don't display the scroll bars. If memory serves 4.7X was released as minor versons 4.72-4.77, all part of the "Communicator Suite" and stand alone versions of Navigator (browser only) were and continue to be available, 4.01-4.08 or thereabouts. Each has unique "undocumented features."

Robert Charlton

7:42 am on Apr 28, 2001 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



>>the left hand scroll bar is missing on the page<<

Assuming you mean one right hand scroll bar, which is what I see in IE, the site looks fine in NS 4.07.

The floating left navbar menu is a fabulous effect... I've never seen it done before.

tedster

8:05 am on Apr 28, 2001 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



OK, now its getting weird.

I just went to your site again, and this time I didn't get a scrollbar. Then I went back to a forum window, covering the window with your site. When I clicked back and checked your site again, the scroll bar was there.

David

2:17 pm on Apr 28, 2001 (gmt 0)

10+ Year Member



It looks good in 4.08, no matter how I resize the window the scroll bar comes and goes as it should. I have 4.76 at the office, I will give it a go when I get in.

>>If you re-size the browser window small enough that you'd have to scroll down to the bottom of the page, there's no scroll bar to scroll with. >>

Have you tried to reload the page after you size the window down ? DW has a function for reloading netscape to properly re-adjust to new window sizes.

mivox

10:32 pm on Apr 28, 2001 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



*blush* yes, I meant the right-hand scroll bar.

OK... I am getting scrollbars with Netscape 4.72/Mac (at home). The two copies of Netscape I have at work were the ones that didn't work... I've got the newest 4.X versions for WIndows & Mac at work (whichever those two are... don't recall offhand). The scrollbar is missing on both those machines.

As for the Netsape 'resize' bug... I *have* tried reloading it after a resize. Still no scroll bar.

In this case, I'd like to find a way to force the window to resize (but not reload), because the top green table is wider than the rest of the page *before* it's resized, but scales to proper size *after* the resize. Kinda like the resize bug reversed... But no scroll bar either way.

The floating left navbar menu is a fabulous effect...

Thanks! Took quite a bit of tinkering to ge tthat one working... but the new design eliminates it. LOL... Just like me! Sweat over design "A", then toss it out the window in favor of design "B" shortly thereafter...

knighty

9:34 am on Apr 30, 2001 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



>(I had to kludge the positioning for NN4.X by inserting <LAYER> tags...)

I'm doing a page that relies heavily on layers but i'm using the DIV tag to position I have tested it on NN and IE on PC and Mac, it looks fine.

Am i missing something? Why did you have to use <layer>tags? I would like to avoid any future problems.

mivox

6:00 pm on Apr 30, 2001 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Why did you have to use <layer>tags?

Before I added the Layer tags, Netscape would display the page correctly on first load, but would immediately bump the header section to the bottom of the page when the window was resized. Once I added the layer tags, the header stayed in the right place after resizing the window.

I suppose I could pull out the layer tags, and add the aforementioned on-resize reload command... but either way, I have to add garbage to the code to make Netscape digest it even halfway properly...

BWA-HA-HA-Ha-Ha-ha-ha-heeee.... (and other maniacal sounds of mirth and frustration) I just checked the page on my office Mac again... and the scrollbars worked JUST FINE! I swear they weren't there Friday... I swear.... ARGH! OK, if Netscape's rendering bugs aren't even consistent enough to work around, forget it. Netscape 4.X users get what they get. (It hurts to say that... I used to be a real Netscape devotee.)

mivox

10:18 pm on May 24, 2001 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I just found a stupidly easy way to prevent this... or so it would seem.

After noticing that scrollbars sometimes failed to appear with IE as well, and deciding that it was, therefore, serious enough to fix, it occurred to me that the browsers might be choking on the fact that the page is laid out in <div> containers with no specified height... so they didn't know whether to scroll, or clip, or what. I added this line to my .css file, and no missing scrollbars since:

body { overflow: scroll }

Just tells the browser to make a scroll bar for any content in the <body> tag. Haven't seen a missing scroll bar since adding that line...

tedster

11:24 pm on May 24, 2001 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Good call, mivox. Makes a lot of sense.

I'm working on some design ideas for frame-like pages that would use position:fixed and overflow:scroll for the main content div. I should be done testing soon.

It will be nice to scroll just the body content, not the nav or header, and still not have the complications that frames can create. Just depends on what kind of browser support I discover, whether I feel this design can really fly or not.

mivox

11:34 pm on May 24, 2001 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



The IE 5.X browsers support it properly, and I think NN4.x does too... NN4.x does respond to the body tag specification.

If you specified the header and content/body area as two separate <div> containers, you might be able to attach the overflow: scroll specification to just the content <div>, while leaving the header <div> static, with a specific height.

mivox

6:44 pm on May 25, 2001 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



YEARGH!!!

*sigh* OK, so the overflow: scroll trick works fine, as long as you are using links to navigate the site. If you type a URL into the Address window in IE 5/Mac, there's no scroll bar again. Until you resize the page...

I'll sort all this out eventually.

mivox

1:18 am on May 30, 2001 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Update... based on the suggestion of a kind forum visitor who emailed me to help out (she suggested actually wrapping all the <body> content in it's own 100% height <div>... but why not try it on my <body> class first, right?):

body { height: 100%; overflow: scroll }

So far I haven't seen a page with a missing scrollbar yet. Will keep my eyes peeled, but at this moment, the problem does appear to be solved!

tedster

4:40 am on May 30, 2001 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



That's a nice tidbit, mivox, thanks! Never would have thought to try it.

I wish my adventures were so fruitful. The browser support for position:fixed is woefully bad. I've been playing around with the code suggested in the O'Reilly CSS book as a replacement for frames functionality, and only Netscape 6 comes even close to support (but not close enough to count), with Opera next in line. The MSIE 6 preview is way out in left field.

But this is CSS-2, so I guess I'll just have to wait. Theoretically it would be awesome.

knighty

8:06 am on May 30, 2001 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Ted,

What ya tryin to do? I only ever use position:fixed

tedster

9:48 am on May 30, 2001 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



It's just an experiment -- not production work so far. I'm trying to create a frame-like structure with a non-moving inverted "L" and a scrolling content area.

I want to use position:fixed to keep the two divs that make up the inverted "L" positioned in the same spot relative to the viewport, rather than in the same spot relative to the page, ala position:absolute.

That way they won't scroll off and only the content should scroll. Or so says O'Reilly, anyway.

Here's the kind of .css file they suggested:

div#header {color:white; position:fixed; top:0; bottom:80%; left:20%; right:0; background:navy;}
div#navbar {color:white; position:fixed; top:0; bottom:0; left:0; right:80%; background:blue;}
div#main {color:navy; position:absolute; top:20%; bottom:0; left:20%; right:0; overflow:scroll; background:white;}

NODENS

10:41 am on May 30, 2001 (gmt 0)



Hi, I've been searching on the web a solution to the page scrollbar problem in NE 4.x.
The CSS body style doesn't work in my pages, but
in

[photowebber.com...]

there is a good tip.

You only have to add:

<p> </p><p> </p>

just before the </BODY> tag, and it works fine!

NODENS

10:44 am on May 30, 2001 (gmt 0)



Upps, there is a gap in my last reply. The correct HTML code is:

<p>&nbsp;</p><p>&nbsp;</p>

Sorry

knighty

12:42 pm on May 30, 2001 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hmmm not so sure abou that css Ted,

You should be able to use the position: absolute which would hold the inverted L in place then you just have to worry about making the page scroll ;)

You should also set some kind of width and height attribute on the layers too.

mivox

6:16 pm on May 30, 2001 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



NODENS - The strangest part of my problem was that IE would occassionally "forget" about the scrollbars too! The body tag/class trick seems to work fine for IE 5 & NN 4.7 on Mac...

I'll check it out on the NT machine later, and if NN 4/Windows is still hiccupping I'll try the <p> fix. Seems odd, but I've definitely heard of stranger things in the wonderful world of HTML. ;)

Tedster - I've never quite been clear about the difference between "fixed" and "absolute"... so I just use "absolute" for everything. I figure by the time the ver. 7 browsers come out, CSS2 might become a useable reality...

iang

5:33 pm on Jun 28, 2001 (gmt 0)



Another crappie thing i noticed in N 4.x is that it does not like to render nested layers. Everything after a nested layer is no longer shown correctly so you need to do that layer last or not nest layers if at all possible.

--iang

mivox

6:02 pm on Jun 28, 2001 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Update... the body { height: 100%; overflow: scroll } specification caused the most bizarre problem in NN6... I don't even know how to describe what it did!

However, body { height: 100%; overflow: auto } seems to acheive the best of both worlds: reliable scroll bars in NN4.X and IE 5.X, while the page remains usable in NN6.

(NN6 still mangles the width of the top nav table, but that's another headache, and not a functional problem, so I'm not sweating it. Our whopping 3 NN6 visitors can probably cope.)

tedster

7:43 pm on Jun 28, 2001 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



>> I've never quite been clear about the difference between "fixed" and "absolute" <<

As I understand it, "position:fixed" is supposed to "fix" the div in relation to the viewport (that is, the monitor/screen) itself. Scrolling the document would not move the fixed div at all.

"position:absolute" sets the div's position in relation to the page, a certain number of pixels down and to th left from the very top -- but the div still scrolls relative to the viewport.

dwedeking

12:54 am on Jun 29, 2001 (gmt 0)



As the test page is gone I cannot say if this is the problem or not, but a while back I had a no-scroll bar problem on NN 4.7. It was due to using layers and assigning the margins to 0 in the body tag (left over from when I had the page set up with tables instead of layers). Don't know if that was the problem but turned out to be a nifty little fact to keep in my head.

mivox

1:26 am on Jun 29, 2001 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Interesting! I don't think that was the problem though... I did a find and replace on the entire site so it uses nothing but <body>. (The site in question is here [absak.com], BTW... the test page was removed when the redesign went live.)

dorkus

5:40 pm on Jul 5, 2001 (gmt 0)



hey guys,

i've been pulling my hair like crazy trying to figure out why my NS 4.7x simply refuses to render the scrollbars when i put my content in <div>'s, and was fortunate enough to find this column. unfortunately, the only solution that worked was the <p> </p> hack, and i can't really use that one since it pushes some of my relatively-positioned content down. the BODY tag stuff (overflow: auto; height: 100%) looked promising but i still have no luck. i've noticed that the missing scrollbar is a combination of completely random rendering (my friend thinks netscape has a non-deterministic rendering algorithm =p) and having the content of a div in a single table... if my content is broken up into several tables, paragraphs, etc., my scrollbars are usually ok, but any single-table chunks screw it up. anyone come up with any other hacks to fix this?

thanks,
marc

dorkus

5:46 pm on Jul 5, 2001 (gmt 0)




oops my bad... <p></p> before </body>, NOT <body>... hehe whoops. that should work. although i will add, putting it between </head> and <body> worked too. stupid netscape. =p

mivox

5:54 pm on Jul 5, 2001 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I figured it was just because Netscape isn't bright enough to realize a <div> might actually be longer than the browser window, so it just doesn't bother to check... Who knows. ;)

tedster

8:47 am on Jul 6, 2001 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



>> Netscape isn't bright enough to realize a <div> might actually be longer than the browser window <<

I continually run into some kind of limitation on div size -- past a certain limit, Netscape just chokes and stops rendering the page, scrollbars and all.

It's not a straightforward limit (sometimes many screens full will render just fine), but it seems to vary with the complexity of other div's on the page. I've also seen that Netscape on a Mac seems even touchier in this regard than the PC version.

I wish I had it figured out more precisely -- right now it's just test, test, and test some more. I have one client site that uses a lot of absolute positioning, and this is where my problems come up the most.

This 44 message thread spans 2 pages: 44