Forum Moderators: travelin cat

Message Too Old, No Replies

Another CSS question

Can't get scroll bars

         

Noops

6:24 pm on Apr 18, 2003 (gmt 0)

10+ Year Member



I'm sure this must be a really simple one, but I've tried to find the solution and can't.

I have coded two sites using CSS, with the left hand side of the screen giving a list of links and the right hand being the main body of the text. By way of experiment, one of these uses the <div> tag to achieve this effect and the other uses frames.

Both work fine on PC, but on Mac, in both IE5 and Netscape, the screen loses its vertical scrollbar when it's clearly needed. I could use overflow to get around this, but that produces an unsightly 'extra' scrollbar inside the window next to the greyed-out bit where the proper scrollbar should be.

I'm confused! The frames version especially uses the style sheet purely for colour/font/etc attributes. So why does it do this? Can anyone advise? I'm running OS9 on a G3 iBook, if that's of any help.

Noops

mivox

8:42 pm on Apr 18, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I've had some very strange things happen when trying to apply styles directly to the <body> tag... are you doing that by any chance? For some reason, although that seems like the most logical place to apply a global style, it works more reliably to declare styles for more specific tags, like <p> or create classes and name the classes within your html tags...

If that's not it, I'll scratch my head some more, and see if any other clever ideas materialize. :)

Noops

11:56 pm on Apr 18, 2003 (gmt 0)

10+ Year Member



How strange. But I'll give it a go and report back. I thought CSS was supposed to make life easier!

How then do I cope with universal logos though?

Birdman

12:27 am on Apr 19, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Why don't you post a stripped down version of the CSS code in question and someone may spot your problem.

mivox

12:51 am on Apr 19, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Not quite sure what you mean by "universal logos"... could you explain?

Noops

11:39 am on Apr 19, 2003 (gmt 0)

10+ Year Member



On both sites there is a logo (company or otherwise) in the top left-hand corner. For the frames site this is no problem, as it can just sit in the left-hand frame coding. But on the other site it's put there by the CSS body description (can't use frames on this one due to incoming links, resulting in just the right-hand side being displayed). I'm just concerned that I'll end up with some hybrid CSS/non CSS site which to me seems like a really untidy way of doing it.

mivox

10:49 pm on May 2, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Can you put the logo in it's own <div> and style/position it independently of the rest of the page?

Nick_W

11:04 pm on May 2, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Or put it as a bgimage of the body element.

Nick