Dynamic CSS handling to keep track of page top