Fixed Method for Positioning Elements in CSS
This article is short but inculding very useful information. A few years ago, we web programmers are used to make these operations via javascript. However, this wasn’t good method because, computers were not powerful enough. Nowadays, computers are too powerfull and we don’t need to use javascript anymore! Just one thing is required for us: CSS(Cascading Style Sheet).
Look at the top-right of this page. Did you see it? Let’s see how it is done…
Structure 1.0:
Example 1.0: Assume that we have a div named “FixDiv” and we want to position it on the top-right of page!
This is fixed!
Important Notice: If you don’t add !doctype tag, position:fixed property is not work on IE…

You might want to consider adding z-index: 100;
to the div to make sure it stays on top as you scroll down
Have you ever tried this in ie6 ????
@Shakeel
It is not working on ie6… You can take a look at here:
http://www.howtocreate.co.uk/fixedPosition.html
If i am putting my CSS in a separate file, where to put this “” ?? in the html file that holds this CSS file?!