Lion scrollbar colors

风流意气都作罢 提交于 2019-12-05 01:58:09

I just had the same problem, but this seems to solve it. Although I haven't thoroughly tested it with other browsers yet. Here is how I fixed it.

html {
  background: #151515;
}
body {
  background: #FFF;
}

I set the background color I wanted to fill the rest of the page as the html background color, and set the body background color to white to trick Safari to render the dark grey scroll bar. Hope this helps!

I might suggest to use the sticky footer technology. That will stick the footer to the bottom and will allow You to change the background-color in the same time.

Or, if You don't want Your footer to stick to the bottom, You could create a container, with 100% height of the window (there are lot's of possibilities to achieve this out there) and apply a background-color to the container and a different background-color to the html

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!