/    Sign up×
Community /Pin to ProfileBookmark

iframe scrolling auto scrollbar color

I have an iframe with scrolling as ‘auto’ so the scrollbar appears automatically depending on the content. I have a custom scrollbar for the iframe using the following CSS.

BODY
{
SCROLLBAR-FACE-COLOR: #AEAEAE;
SCROLLBAR-HIGHLIGHT-COLOR: #000000;
SCROLLBAR-SHADOW-COLOR: #000000;
SCROLLBAR-3DLIGHT-COLOR: #000000;
SCROLLBAR-ARROW-COLOR: #ffffff;
SCROLLBAR-TRACK-COLOR: #000000;
SCROLLBAR-DARKSHADOW-COLOR: #000000;
}

The custom scrollbar works great for the iframe when there is content spanning more than the height of the iframe in Internet Explorer. But it does not work in firefox. Also, there is one more issue in IE. When the content is less than the height of the iframe, the custom scroll bar does not appear but rather a place holder for the scroll bar. I am OK with the place holder but I would like the background color for the scrollbar placeholder to be black instead of the default white. How do I fix these issues ? Thanks for any help.

to post a comment
JavaScript

1 Comments(s)

Copy linkTweet thisAlerts:
@FangDec 12.2009 — These properties only work in IE, not in any other browser.

There is no way to change the 'place holder' scrollbar color.
×

Success!

Help @vayumahesh spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.18,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...