Force Lion’s scrollbar back

Anyone figured how to force the scrollbar in Lion with css/html/javascript? i.e. without sys prefs“ @andyshaw85

As soon as we thought we settled the “above the fold” discussions, with Safari on Lion it’s back, more than ever..!!! ;-(

Personally, I prefer the hidden scrollbar, but in case you bump into a more “conservative” client and he really demands it, you can just overwrite the default and force the srollbar back like this:

::-webkit-scrollbar {
    -webkit-appearancenone;
    width7px;
}
::-webkit-scrollbar-thumb {
    border-radius4px;
    background-colorrgba(0,0,0,.5);
    -webkit-box-shadow1px rgba(255,255,255,.5);
}

See the demo.

PS. And as an added bonus, it gets rid of the ugly scroll-track in Chrome and makes it look more consistent.

PSS. If you only want it on Lion, here with a JS sniffing script added.

  1. mortgages-uk reblogged this from simurai
  2. jeen-hao reblogged this from four-wheeler
  3. idmserial reblogged this from four-wheeler
  4. four-wheeler reblogged this from simurai
  5. cheap-papers reblogged this from lsdlab
  6. cheap-papers reblogged this from simurai
  7. nhmortgagebroker reblogged this from simurai
  8. coderipper reblogged this from simurai
  9. jamesmadson reblogged this from simurai
  10. steve-knight reblogged this from simurai
  11. oneahamd reblogged this from simurai
  12. lsdlab reblogged this from simurai
  13. kiskex reblogged this from simurai
  14. fuckingenjoylife reblogged this from simurai
  15. simurai posted this
Feed me