websitehelp Posted January 25, 2022 Posted January 25, 2022 (edited) website inquiryintotimeandperception.com pw: inquiry123 i'd like to change the scrollbar color to white instead of black because it's not visible. anyone have a code for this? Edited January 28, 2022 by websitehelp
Beyondspace Posted January 28, 2022 Posted January 28, 2022 On 1/26/2022 at 2:08 AM, websitehelp said: website inquiryintotimeandperception.com pw: inquiry123 i'd like to change the scrollbar color to white instead of black because it's not visible. anyone have a code for this? Do you mean this scrollbar? websitehelp 1 BeyondSpace - Squarespace Website Developer 🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox - PDF Lightbox popup - ...) </> 🗓️ Delivery Date Picker (Date picker form field) Gallery block 7.1 workaround </> No-code customisations for Squarespace
websitehelp Posted January 28, 2022 Author Posted January 28, 2022 15 hours ago, bangank36 said: Do you mean this scrollbar? yes
Beyondspace Posted January 28, 2022 Posted January 28, 2022 1 hour ago, websitehelp said: yes Try body::-webkit-scrollbar { width: 10px; } body::-webkit-scrollbar-track { background: #ccc; /*color of track*/ border-radius: 100rem; } body::-webkit-scrollbar-thumb { background: red;/*color of scrollbar*/ border-radius: 100rem; } Let me know how it works on your site BeyondSpace - Squarespace Website Developer 🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox - PDF Lightbox popup - ...) </> 🗓️ Delivery Date Picker (Date picker form field) Gallery block 7.1 workaround </> No-code customisations for Squarespace
Beyondspace Posted January 28, 2022 Posted January 28, 2022 My testing BeyondSpace - Squarespace Website Developer 🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox - PDF Lightbox popup - ...) </> 🗓️ Delivery Date Picker (Date picker form field) Gallery block 7.1 workaround </> No-code customisations for Squarespace
websitehelp Posted January 29, 2022 Author Posted January 29, 2022 (edited) 4 hours ago, bangank36 said: Try body::-webkit-scrollbar { width: 10px; } body::-webkit-scrollbar-track { background: #ccc; /*color of track*/ border-radius: 100rem; } body::-webkit-scrollbar-thumb { background: red;/*color of scrollbar*/ border-radius: 100rem; } Let me know how it works on your site thanks, this worked but it took up space from the margins rather than being a part of the site. is there a way to make it more seamless and just change the color of the scrollbar? without changing the color of the background of the scrollbar too and taking up that extra space? Edited January 29, 2022 by websitehelp
Beyondspace Posted January 29, 2022 Posted January 29, 2022 You can try removing the following style for track body::-webkit-scrollbar-track { background: #ccc; /*color of track*/ border-radius: 100rem; } For the width of scrollbar, kindly try changing the width value in body::-webkit-scrollbar { width: 10px; /*width of scrollbar*/ } Until it meets your desire BeyondSpace - Squarespace Website Developer 🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox - PDF Lightbox popup - ...) </> 🗓️ Delivery Date Picker (Date picker form field) Gallery block 7.1 workaround </> No-code customisations for Squarespace
websitehelp Posted January 31, 2022 Author Posted January 31, 2022 On 1/28/2022 at 6:34 PM, bangank36 said: Try body::-webkit-scrollbar { width: 10px; } body::-webkit-scrollbar-track { background: #ccc; /*color of track*/ border-radius: 100rem; } body::-webkit-scrollbar-thumb { background: red;/*color of scrollbar*/ border-radius: 100rem; } Let me know how it works on your site It unfortunately still takes up space rather than fully integrates itself. My header image is full bleed and this scroll bar removes that full bleed.
Beyondspace Posted February 1, 2022 Posted February 1, 2022 11 hours ago, websitehelp said: It unfortunately still takes up space rather than fully integrates itself. My header image is full bleed and this scroll bar removes that full bleed. Kindly try adding the background of track with transparent so it won't over-hide your images body::-webkit-scrollbar-track { background: transparent; /*color of track*/ } BeyondSpace - Squarespace Website Developer 🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox - PDF Lightbox popup - ...) </> 🗓️ Delivery Date Picker (Date picker form field) Gallery block 7.1 workaround </> No-code customisations for Squarespace
aalexh1 Posted April 29, 2022 Posted April 29, 2022 On 2/1/2022 at 5:33 AM, bangank36 said: Kindly try adding the background of track with transparent so it won't over-hide your images body::-webkit-scrollbar-track { background: transparent; /*color of track*/ } Hi bangank36, Your code here is really helpful and I really like how it looks. The problem I have is that some of my pages are short and no scroll bar is needed, so it doesn't show up, but this means that when I flip between long pages with scroll bars and short pages with no scroll bar, the navigation at the top adjusts and moves slightly, which I appears really bad to me. Any ideas to fix this? Like a code to make the scroll bar track appear even on short pages where there is no scroll? Any help is appreciated. Thank you! August
dienekeschuffelers Posted July 26, 2023 Posted July 26, 2023 Hi there, Can anybody help me out with changing the color of the scroll bar? I found some code but unfortunately.. this does;t work? ::-webkit-scrollbar { width: 20px; } ::-webkit-scrollbar-track { background: #DFCED3; border-left: 1px solid #333 } ::-webkit-scrollbar-thumb { background-color: #2A8AF8; border-radius: 1rem; }
dienekeschuffelers Posted July 26, 2023 Posted July 26, 2023 On 1/29/2022 at 4:50 AM, websitehelp said: body::-webkit-scrollbar { Dear.. Unfortunately this code doesn't work for me.. or I am doing something wrong. My scroll bar remains white... What am I doing wrong...?
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment