Marcin Polski Marcin Polski - 1 month ago 7
CSS Question

How to make scroll bar permanently visible on Mac OS using CSS or jQuery

I want to make scroll bars permanently visible on Mac OS, but I don't know how to do it, I tried something like :

var topVal = $(".content").css("top"); //alert(topVal);
var val=parseInt(topVal.replace("px",""));
val=val+20;
$(".content").css("top", val+"px");


also something like this :

var g=jQuery('.all-notifications-feed');
g.scrollTop+=1;
g.scrollTop-=1;


of course I used interval to repeat code every 0.2 sec.

Answer

I agree with @DinoMyte ,

 overflow:scroll 

would be a good option for this if all you want to do is show the scroll bar.

Here is the link to overflow property .

http://www.w3schools.com/cssreF/pr_pos_overflow.asp

Also another way to force the scroll in safari

http://jsfiddle.net/simurai/UsvLN/

Credit goes to http://simurai.com/blog/2011/07/26/webkit-scrollbar

Hope this helps.