Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Controlling the scrollbar in iframes

Status
Not open for further replies.

dutch62

Programmer
Joined
Dec 31, 2001
Messages
58
Location
NL
Hi all,

as many of you know, the scrollbar-style can be set with a little piece of CSS, such as:

<style>
body
{
scrollbar-base-color: #CC3366;
}
</style>

However, this doesn't seem to work on scrollbars in iframes. Does anyone know if it's possible at all?

Thanks in advance, Dutch :-)
 
I don't think it's possible for iframes.
I couldn't get it to work anyway.

Scrollbar-BASE-color?



É ::
 
Hi Cian,

the css-property &quot;scrollbar-base-color&quot; is a quick way to set the overall-color of the scrollbar. It's possible to define a color for every part of the scrollbar, too.

Visit for a detailed description.

Greetz, Dutch :-)
 
BTW, I discovered how to do this.

The trick is to set the scrollbar-color in the body-tag of the file that is shown INSIDE the iframe.
So <iframe style=&quot;scrollbar-base-color: red&quot;> won't work.

:-) :-) Dutch
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top