473,324 Members | 2,400 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,324 software developers and data experts.

Overflow: scroll scrollbar colors?

kjs
Is there any was to control the color of the scrollbars when using the
'overflow: scroll' attribute?

TIA,

Karl
Nov 23 '05 #1
9 4298
kjs
I answered my own question by consulting c.i.w.a.h google group archives (an
Oct 25, 2000 posting from Robert Norris).

Cheers.
Nov 23 '05 #2
kjs napisa³(a):
I answered my own question by consulting c.i.w.a.h google group archives (an
Oct 25, 2000 posting from Robert Norris).


My advice is, that you better rely on much newer posts.
Styling scrollbars is IE-only trick and won't work in other browsers.

--
Janusz 'Kali' Kaliszczak
Nov 23 '05 #3
As if the love poetry wasn't enough, Janusz 'Kali' Kaliszczak just had
to say:
Styling scrollbars is IE-only trick and won't work in other browsers.


Not entirely true. It /can/ work in Opera too, but as the user can (and
often will) disable feature, it can't be relied on.

Many folk would argue that the scroll bars are part of the browser and
that one shouldn't fiddle with the styling, but this argument starts to
get a little blurry when overflow:auto; scrolling divs etc start to
enter the discussion :\

--
Dylan Parry
http://electricfreedom.org -- Where the Music Progressively Rocks!

Usenet: The first post is free, but the next will cost you your soul.
Nov 23 '05 #4
Dylan Parry wrote:
As if the love poetry wasn't enough, Janusz 'Kali' Kaliszczak just had
to say:

Styling scrollbars is IE-only trick and won't work in other browsers.

Not entirely true. It /can/ work in Opera too, but as the user can (and
often will) disable feature, it can't be relied on.


http://www.opera.com/support/search/....dml?index=637

As you can see, it looks quite opposite.
It's IE's extension to CSS and as default it's disabled so coder can't
rely on it.
--
Janusz 'Kali' Kaliszczak
+ pies rasy *jumnik*
=> http://www.deviantart.com/view/18982956/ <= GG#52055
Nov 23 '05 #5
Janusz 'Kali' Kaliszczak wrote:
http://www.opera.com/support/search/....dml?index=637

As you can see, it looks quite opposite.
It's IE's extension to CSS and as default it's disabled so coder can't
rely on it.


Page is a little out of date. It's ON by default now.

--
Toby A Inkster BSc (Hons) ARCS
Contact Me ~ http://tobyinkster.co.uk/contact

Nov 23 '05 #6
Toby Inkster wrote:
Janusz 'Kali' Kaliszczak wrote:

http://www.opera.com/support/search/....dml?index=637

As you can see, it looks quite opposite.
It's IE's extension to CSS and as default it's disabled so coder can't
rely on it.

Page is a little out of date. It's ON by default now.


Ok. My fault.
I just never use non-standard things, so I've never checked it myself.

--
Janusz 'Kali' Kaliszczak
+ pies rasy *jumnik*
=> http://www.deviantart.com/view/18982956/ <= GG#52055
Nov 23 '05 #7
kjs
.. . . pretty nice trick -- especially on a dark background.
-- from Google Group Archives of ciwah:

Robert Norris
Oct 25 2000, 12:00 am show options

Newsgroups: alt.www.webmaster
From: "Robert Norris" <rob...@e-constructions.com.au> - Find
messages by this author
Date: 2000/10/25
Subject: Re: How to change Scrollbar color ?
Reply to Author | Forward | Print | Individual Message | Show
original | Report Abuse

Hi Cliff,
You can change the color of the scroll bar using cascading style
sheets.
Here is an example for you:
<STYLE TYPE="text/css">
BODY {
margin: 0 0 0 0;
padding: 0 0 0 0;
scrollbar-face-color: #666666;
scrollbar-highlight-color: #333333;
scrollbar-shadow-color: #222222;
scrollbar-3dlight-color: #888888;
scrollbar-arrow-color: #ff0000;
scrollbar-track-color: #222222;
scrollbar-darkshadow-color: #111111
}
</STYLE>
Place that in your <head></head> tags and fiddle around.
Hope this helps.
Good luck,


Nov 23 '05 #8
As if the love poetry wasn't enough, Toby Inkster just had to say:

[Styling scroll bars]
Page is a little out of date. It's ON by default now.


Which IMHO is not such a bad thing, although I do think that the option
to disallow it for body{} styles but allow it for things like iframe and
overflow:auto; would be a good thing.

I think, but I am sure others will disagree, that whilst the browser
window is part of the user's environment, and not something that I
should fiddle with, the scroll bars within the page (not the one down
the RHS[1]) are part of the page, and it would be nice to be able to
style them to fit with the rest of a design if they are used at all.

_____
[1] Right-hand-side, not the flower people.

--
Dylan Parry
http://electricfreedom.org -- Where the Music Progressively Rocks!

Usenet: The first post is free, but the next will cost you your soul.
Nov 23 '05 #9
Dylan Parry wrote:
I think, but I am sure others will disagree, that whilst the browser
window is part of the user's environment, and not something that I
should fiddle with, the scroll bars within the page (not the one down
the RHS[1]) are part of the page, and it would be nice to be able to
style them to fit with the rest of a design if they are used at all.


I totally agree with that. It wouldn't be a bad thing if w3c added it to
the CSS specs. People who don't like it don't have to use it, and those
who do like it finally can use valid styling code.
--
TomB - DrumScum
tomb <-at-> versateladsl <-punt-> be
http://www.duskmetal.be
Nov 23 '05 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: gsb | last post by:
Is there a way w/ CSS or JavaScript to stop the scrollbar from showing up in a TEXTAREA? IE6+ NN6+ Thanks, gsb
15
by: Andrew Fedoniouk | last post by:
I have a simple test document which produce the following in Mozilla and Opera: http://terrainformatica.com/w3/p2/problem1.png Internet Explorer behaves as per recommendation (I guess) Did I...
1
by: Marek Mänd | last post by:
<select multiple style="height:200px;"> <option>a <option>b </select> Why does Mozilla draw the vertical scrollbar to the SELECT html element? There is plenty of void room below two OPTIONs in...
4
by: Harry | last post by:
I just implemented an "overflow: auto" for a div in the main message window: http://www.auriance.com/docs/interaction/ This works as expected in Internet Explorer and Opera, but in Firefox it...
1
by: yellowtek | last post by:
Hi, I display some information (actually a table of data) within a <div> which height is constrained, making display a vertical scrollbar: <div style='overflow: auto height:300px;'> I need to...
4
by: reycri | last post by:
I have a page that works as I intend in IE but not in Firefox: <html> <head> <title>Overflow Test</title> </head> <body style='overflow:hidden; margin:0; padding:0;'> <table border='0'...
2
by: kaczmar2 | last post by:
I have a webpage that has 2 main DIVs - a title div and a content div. I want the title dive to always "stick to the top of the page and not scroll, regardless of the size of the window. The...
3
by: Otto de Voogd | last post by:
I posted the problem below in alt.www.webmaster before, but no-one knew the answer, however someone suggested this group as a good place to ask. I am trying to fit images into a browser window...
1
by: Miked | last post by:
Hi: I have overflow: scroll style property set in a bunch of containers. Want to be able to suppress the horizontal scroll bar, as I know that the contents of my containers won't go over the...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.