Forum Moderators: open

Message Too Old, No Replies

damn scrollbars

left right ones should not appear

         

stef25

11:12 pm on May 25, 2004 (gmt 0)

10+ Year Member



im loading pages into an iframe. users have to scroll downward because the content goes down deep, so up/down scrollbars appear

but the left/right scrollbars appear as well in some cases, even though there is nothing there. i made the <div> that the text sits in only 360px wide and the iframe is 760 wide

when the up/down scroll bars appear do the L/R ones appear automatically aswell?

is there anyway to kill this (ie yes for up and down but no for L/R), it looks really bad!

maybe by coloring the L/R scrollbar differently from the up down ones i can camouflage it?

thx
s

sned

11:17 pm on May 25, 2004 (gmt 0)

10+ Year Member



I had this problem a couple times, what worked for me was to put

<body style="margin:0px;">

in the page being loaded into the iframe.

<edit>oops, saw that vertical scroll was needed. </edit>

imaputz

11:32 pm on May 25, 2004 (gmt 0)

10+ Year Member



I'm assuming you are having problems with IE. There are a few ways to workaround this.

a) in iframe tag, set scrolling=yes

b) in document within iframe, set it to render in quirksmode.

c) in document within iframe, set body's overflow-x: hidden and overflow-y: scroll. this is not valid css so wrap this in IE conditionals.

i have personally found that workaround a works best, though it gives the scrollbar place holders in a few other browsers.

stef25

12:15 am on May 26, 2004 (gmt 0)

10+ Year Member



workaround a worked for me too

nothing beats this forum for getting quality answers fast ,,,

big thanks
S

stef25

12:16 am on May 26, 2004 (gmt 0)

10+ Year Member



out of intrest whats quirksmode

and could you give an example of the IE conditionals?

imaputz

12:32 am on May 26, 2004 (gmt 0)

10+ Year Member



for IE conditionals try: here [webmasterworld.com]

sorry, don't have a link handy... you might have to google for quirksmode stuff, try keywords DTD and quirksmode

[edited by: imaputz at 12:34 am (utc) on May 26, 2004]

imaputz

12:34 am on May 26, 2004 (gmt 0)

10+ Year Member



blah... ok, this one should work: click me [webmasterworld.com]

bgrobe

5:09 pm on May 28, 2004 (gmt 0)

10+ Year Member



You can use style sheets to change the colors to whatever. These are the CSS commands.

BODY {
SCROLLBAR-FACE-COLOR: COLOR;
SCROLLBAR-HIGHLIGHT-COLOR: COLOR;
SCROLLBAR-SHADOW-COLOR: COLOR;
SCROLLBAR-ARROW-COLOR: COLOR;
SCROLLBAR-TRACK-COLOR: COLOR;
SCROLLBAR-DARKSHADOW-COLOR: COLOR;
SCROLLBAR-BASE-COLOR: COLOR;
}

<snip>

[edited by: korkus2000 at 5:21 pm (utc) on May 28, 2004]
[edit reason] No code reviews please [/edit]

choster

5:49 pm on May 28, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



bgrobe, scrollbar styling is not part of the current CSS standard and is only available on Internet Explorer.

tedster

8:08 pm on May 28, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



whats quirksmode

You inspired me to start a thred about it:

[webmasterworld.com...]