When I used CSS position:fixed
, it never works at all in one of my site but works in other site.
I couldn't find out any reason. It works perfect in all of my developing sites in all browser.
However, position:fixed
never works in one site only wherever I put it except for Firefox.
Example:
<div style="position:fixed">
This div is fixed
</div>
This never fixed its position.
Now the is fixed but it doesn't stick to the window when scrolled as it does in Firefox.
Now I found the solution & working on it.
It was because I call some other css files. when i remove one of the css it works perfect.
I don't know why but it works..