inherit
233663
0
Apr 7, 2019 17:37:41 GMT -8
tobidadog
139
June 2016
tobidadog
|
Post by tobidadog on Aug 30, 2016 21:51:36 GMT -8
|
|
#eb7100
1480
0
1
Nov 21, 2024 14:52:33 GMT -8
Craig
209,196
September 2001
cmdynasty
|
Post by Craig on Aug 31, 2016 0:02:43 GMT -8
Hi That doesn't appear to be default, so i am not sure entirely what that line does, so am not sure what you mean precisely by invisible. Could you elaborate.
|
|
inherit
29252
0
Sept 6, 2012 15:46:49 GMT -8
Derek‽
28,697
August 2004
kajiaisu
|
Post by Derek‽ on Aug 31, 2016 5:17:09 GMT -8
Change overflow:auto; to overflow:hidden; if you want to get rid of the scrollbar.
Be advised that the "overflow" property handles how the browser handles content that stretches beyond the boundaries of the <div> and that auto makes the scrollbar appear whenever this takes place, while hidden simply hides whatever content doesn't fit.
If you want to hide the scrollbar and still be able to scroll through the content, well, you can try setting the overflow to "auto" for that div, and "hidden" for the parent div. There are no guarantees this will work in all browsers and future updates may correct this hacky-ish behavior. There is no official mention in the HTML5/CSS3 specifications regarding behavior for this scenario, so there's no official cross-browser solution. Making content scrollable in one div while inheriting the edict to hide the scrollbar from a parent div is a quirk, not a feature.
|
|
#eb7100
1480
0
1
Nov 21, 2024 14:52:33 GMT -8
Craig
209,196
September 2001
cmdynasty
|
Post by Craig on Aug 31, 2016 6:12:16 GMT -8
Change overflow:auto; to overflow:hidden; if you want to get rid of the scrollbar. Be advised that the "overflow" property handles how the browser handles content that stretches beyond the boundaries of the <div> and that auto makes the scrollbar appear whenever this takes place, while hidden simply hides whatever content doesn't fit. If you want to hide the scrollbar and still be able to scroll through the content, well, you can try setting the overflow to "auto" for that div, and "hidden" for the parent div. There are no guarantees this will work in all browsers and future updates may correct this hacky-ish behavior. There is no official mention in the HTML5/CSS3 specifications regarding behavior for this scenario, so there's no official cross-browser solution. Making content scrollable in one div while inheriting the edict to hide the scrollbar from a parent div is a quirk, not a feature. Hopefully that is what they meant. It's what i assumed, but reading the subject, and then the post, confused me a little inasmuch as appearing to talk about different things, so wanted to clarify first.
|
|
inherit
233663
0
Apr 7, 2019 17:37:41 GMT -8
tobidadog
139
June 2016
tobidadog
|
Post by tobidadog on Aug 31, 2016 10:48:35 GMT -8
Hey guys, to clarify, I have a scrollbar that I set with that simple code. I would like for the actual bar to not be visible, but still scroll. Right now it looks like this concretepawsteps.proboards.com/user/1and I want to scroll on it without seeing that ugly grey bar. Either that, or change the color on it. I just think it looks bad.
|
|
#eb7100
33409
0
1
Nov 13, 2024 16:56:46 GMT -8
Brian
48,130
November 2004
smashmaster3
|
Post by Brian on Aug 31, 2016 11:19:45 GMT -8
Derek‽'s solution would be the way to go. The easiest way to make it work is to add overflow: hidden; to the parent element of the overflow: auto; div, then change the width of the overflow: auto; div so that the scrollbar is cut off by the edge of the container.
|
|
inherit
I need a new CT, thinking.... [insert Jeopardy theme song here]
110769
0
Aug 21, 2021 0:07:21 GMT -8
Tumbleweed
20,825
September 2007
tumbleweed
|
Post by Tumbleweed on Sept 1, 2016 0:18:01 GMT -8
Hey guys, to clarify, I have a scrollbar that I set with that simple code. I would like for the actual bar to not be visible, but still scroll. Right now it looks like this concretepawsteps.proboards.com/user/1and I want to scroll on it without seeing that ugly grey bar. Either that, or change the color on it. I just think it looks bad. If it were invisible, no one would see it and they'd probably think there wasn't a scroll bar to scroll. You can make it semi-transparent or make it totally transparent but it'll only work in Chrome and Safari. You can only change the color in IE. FF and I believe Edge don't support any changes at all and not sure about any other browsers. If you want to try it for Chrome, Safari and IE, add a class to that div like so: <div class="scrollable-content"> (other html/things here) And then some css in the bottom of your style sheet: /*scroll bar color for chrome and safari*/ .scrollable-content { width:200px; height:300px; overflow:auto; overflow-x:hidden; overflow-y:scroll; padding:2px 8px 2px 2px; } .scrollable-content::-webkit-scrollbar { width:20px; } .scrollable-content::-webkit-scrollbar * { background:transparent; } .scrollable-content::-webkit-scrollbar-thumb { background:rgba(255,0,0,0.2) !important; } /*scroll bar color for IE*/ .scrollable-content { scrollbar-base-color: #dd0000; scrollbar-arrow-color: #00dd00; border-color: #000000; }
|
|