View Full Version : Please help ! My hrefs are not working !

10-20-2006, 08:17 PM

For some reason my nav links are not working but I can't see the problem !!!

My site is online at : www.yodbod.com

Once there please hit one of the menu buttons
EG "Local Services"

The problem is with the Offered and Wanted buttons and the Page links.

In IE its ok - they work but in FF Moz they are not working
By looking at the code source can you see why my the don't work ?

Thanks for help. :)

10-20-2006, 09:02 PM
Warning: mysql_connect(): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (111) in /home/blinyky/public_html/examples.php on line 22
Couldn't connect to server.

10-20-2006, 09:43 PM
Dont know why you get that - server & sql working fine for me ?????

10-20-2006, 11:10 PM
Now it's working.
Add z-index: 1; to the absolutely positioned divs containing the links.

10-21-2006, 07:50 AM
Clever you !! :thumbsup:

OK I got the pictures and text working using z-index: 1;
ALSO the Offered & Wanted works -

BUT the page buttons don't work yet :o

What do you recommend ?

Can you please tell me why the z-index makes it work ?

I have never really used this z-index before :o

What if I set it to:
z-index: 2; ?
or z-index: 300; ?
or z-index: f; ?

What would that do ?

Thanks for your advice :)

10-21-2006, 07:48 PM
Sorted - thanks

10-22-2006, 02:14 PM
z-index determines how positioned (-> absolute, relative, or fixed) elements are layered above each other. The higher the z-index the more on top is the element. Letters aren't valid values.

<?austin ?>
10-22-2006, 11:08 PM
so z index is like a layer?


#bottomlayer {
background: red;
z-index: 1;

#toplayer {
background: blue;
z-index: 2;

<div id="bottomlayer">im ontop yo!</div>
<div id="toplayer">no! i am!</div>?

that is how i understand it. so could i have the top layer under the bottom layer but it still displays ontop?

<div id="toplayer">no! i am!</div>
<div id="bottomlayer">im ontop yo!</div>

10-22-2006, 11:24 PM
Yes, it doesn't matter where in the source code the element is but z-index only works if you also apply position: absolute/relative/fixed; (one of the three values at a time) to the element(s). Without positioning nothing will happen.