views:

53

answers:

1

So, I have an element on a webpage that is located under some other elements. This element should, whenever it hits the top of the page be fixed (ie. it shouldn't leave the view.)

I've seen this being done on the Webkit Inspector in the resources tab.

Does anyone know how to replicate this feature/effect?

+1  A: 

I think that the behavior you want is similar to the desired on this question, check this example.

CMS
Thanks, that answered the question.
henrikh