Hi, I have a DIV with dynamic text in, set to Overflow: scroll and Max height of 200px; OK firstly how can i get rid of the default VERTICAL greyed out scrollbar, which there is obviously no use for, as users will never be able to scroll vertically? Secondly can I change the horizontal scrollbar in any way from the default grey one to a better looking one, maybe my own styled one? The grey one simply doesn't cut it! Many Thanks
Heres for the second part: ucan name it anything u want .divscroll { scrollbar-base-color: #663366; scrollbar-face-color: #99CCCC; scrollbar-track-color: #996699; scrollbar-arrow-color: #330033; scrollbar-highlight-color: #FFFFFF; scrollbar-3dlight-color: #CCCCCC; scrollbar-shadow-color: #663366; scrollbar-darkshadow-color: #000000; } and change the colors to whatever u want and put class="divscroll" in ur div <div class="divscroll">
Thankyou very much fiathnomoread, The overflow: auto; worked great.. The coloured scrollbars also work good...but not in FireFox! I get them as desired in IE7, but in FF i still get the default ones! Any ideas anyone pleaseeeeeee Many Thanks in advance.
Not a problem, as for the scroll bars in firefox that is new area for me and I have been trying to study on it let me figure it out.
Just found out that u cant change scroll bars in firefox or opera cuz its messing with users settings. U can do it with javascript, but Im not fluent in that yet and will have to figure it out, I am curious as well so Im on a mission,lol.
Ok heres the deal: The only way to do it is to: 1) delete any ties to W3C in ur HTML, change the <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> to just <HTML>. 2) enter following text into <head>: <style> body{ scrollbar-face-color: #808080; /*/ obviously change this to whatever you want /*/ scrollbar-arrow-color: #FFFFFF; scrollbar-highlight-color: #FFFBF0; scrollbar-3dlight-color: #808080; scrollbar-shadow-color: #FFFBF0; scrollbar-darkshadow-color: #808080; scrollbar-track-color: #CCCCCC; } </style> <script> function selectCode(f){ document.forms[f].elements[0].focus(); document.forms[f].elements[0].select(); } function changeScrollbarColor(C){ if (document.all){ document.body.style.scrollbarBaseColor = C } } </script> 3) Change <body> to <body onload="changeScrollbarColor()"> This should work. Of course change colors to whatever u like, U can not use any code for Mozilla. If that doesnt work, sorry I tried, and Ill keep looking, let me know.
Thanks so much mate for your help and assistance and time! It's late in UK, will try this tommorow and let you know on the developments! Again many thanks.