Forum Moderators: open

Message Too Old, No Replies

problem with hyperlinks

         

naiquevin

1:29 pm on May 8, 2009 (gmt 0)

10+ Year Member



I am working on a system where there are user profiles ..

When I ,logged in as one of the user visit some other persons profile, I should be able to get to his comments section by clicking on an hyperlink 'comments' and post comments

But, there are some profiles in which the comments link is not active..
It is styled just like a link (blue color and underline)
But on hover the cursor doesnt change and no link is shown in the status bar ..
In the view source of the browser, the link is there

<a href="myhome.php?id=7">Comments</a> <br/> <br/>

Whereas there are some other profiles where this seems to work perfectly fine

There is no condition set for displaying this link

I am not able to figure out what is wrong here..
Please help

PS .. This is happening in Firefox

rocknbil

3:19 pm on May 8, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Step one: View the source code of the errant page, save it in a plain html file.

Go to the w3c validator
[validator.w3.org...]

Copy and paste the code into the direct input tab, get it to validate.

If it validates, there is likely something "covering up" the link; are you using any elements with absolute positioning or z-index? In your "test file," add different colored borders to the elements.

<div class="some-div" style="border:1px solid #ff0000">
....
</div>

With all the borders visible, refresh the test page, see if you can see what's going on. Usually the combination of the two will rout out the offending elements.

naiquevin

3:29 pm on May 8, 2009 (gmt 0)

10+ Year Member



hey thanks a lot ... wasnt z-index exactly..but it was being covered up by something

I just increased the padding-top and now it works

Thanks again