Monday, 15 March 2010

jquery - CSS Fixed Property Relative to Parent/Window based on Left Property -


I have two floating menus while scrolling down, their status is set to fixed So that they are relative to their top and left windows. I have set my left property to 0 , as it is expected that they paste on the window However, when I set it to 1 Or any more number they stick in their containers.

Anyone have any idea why?

You must be abandoned: 1px instead of left: 0.

In CSS if you want to set an asset to 0, you do not need to provide the unit (PX, AM etc.), but if you call it any non-zero value (1 here) ), Then you have to specify a valid entity.

.menuFloat {z-index: 99 99; Status: fixed; Left: 1px; Top: 0; Width: 100%;}

No comments:

Post a Comment