# Clicking link to a reference table or figure always navigates to first page of the document

I have this strange issue that whenever I click on the reference link for a table or figure, I donot goto the place where figure or table is labeled, but I am always navigated to first page of the whole document. Does anyone knows what might be doing wrong.

-
I would guess you have the \label command before the \caption command in the figure. –  David Carlisle Sep 4 '12 at 11:24
In some places I have label inside the caption command and in some cases I have label after the caption command. Which is the best way to put labels for figures and tables ? –  nurabha Sep 4 '12 at 11:27
Welcome to TeX.sx! Please add a minimal working example (MWE) that illustrates your problem. –  Stephan Lehmke Sep 4 '12 at 11:35
@nurava Editing down the source to the minimal form which still exhibits the problem is a big part of solving the problem; sometimes the solution becomes obvious then. No need to leave that part of problem solving to volunteers, don't you think? –  Stephan Lehmke Sep 4 '12 at 12:15
@nurava We'd really like to help. It's just pretty neigh impossible without MWE. –  Stephan Lehmke Sep 4 '12 at 13:42

\begin{figure}[t]

That is, keep caption and label inside the figure environment, but outside \begin{center} ..... \end{center}.