Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why does Safari seem to have a problem with css position:fixed?

I am working on this site: http://www.mywebclass.org/~jeff/ . A large percent of the ui is built with position:fixed;. In all the browsers except Safari it renders fine. But in Safari it is all messed up. Is there any way to fix this?

like image 528
chromedude Avatar asked Jul 26 '11 02:07

chromedude


1 Answers

You have position:fixed on a few elements but you haven't set any of top, left, right, or bottom to tell the browser where they should be positioned. The browser will be left to guess (within limits) what you mean if you don't specify the position and different browsers will guess different things. The solution is to add left and top properties to all your position:fixed elements.

like image 191
mu is too short Avatar answered Nov 05 '22 18:11

mu is too short