Forum Moderators: not2easy

Message Too Old, No Replies

links dont work in Mozilla

         

trevor88

8:11 am on Sep 27, 2004 (gmt 0)

10+ Year Member



I have written a site that works in IE. In Mozilla it doesn't. Nothing inside a div works. The links dont work , the alt = doesnt work, and besides that when the mouse is over the page the whole text becomes bold and is underlined. Am I allowed to put the url uphere?

trevor88

8:15 am on Sep 27, 2004 (gmt 0)

10+ Year Member



This is the css code

/* Generic Selectors */

body {

font-family:Georgia,"Times New Roman",Times,serif;

font-size:14px;

color:#333333;

background-color: #00CCFF;

}

li {

list-style-type: disc;

line-height: 150%;

}

h1 {

font-family: Georgia, "Times New Roman", Times, serif;

font-size: 18px;

font-weight: bold;

color: #000000;

}

h2 {

font-family: Georgia, "Times New Roman", Times, serif;

font-size: 16px;

font-weight: bold;

color: #000000;

border-bottom: 1px solid #C6EC8C;

}

/**************** Pseudo classes ****************/

:link {

color: #3300FF;

text-decoration: underline;

font-weight: bold;

}

li :link {

color: #3300FF;

text-decoration: none;

font-weight: bold;

}

:visited {

color: #CC33CC;

text-decoration: underline;

font-weight: bold;

}

li :visited {

color: #CC33CC;

text-decoration: none;

font-weight: bold;

}

:hover {

color:#6633CC;

font-weight:bold;

text-decoration:underline;

}

li :hover {

display:block;

color:#6633CC;

font-weight: bold;

border-bottom-width: 1px;

border-bottom-style: solid;

border-bottom-color: #C6EC8C;

}

:active {

color:#FFFF66;

font-weight:bold;

}

/************************* ID's *************************/

#navigation {

position:absolute;

z-index:10;

width:175px;

height:400px;

margin:0;

margin-top:5px;

font-weight:bold;

}

#centerDoc {

position:absolute;

z-index:15;

width:380px;

height:300px;

padding:0 15px 20px 185px; /*top right bottom left*/

margin-top:5px;

}

#rightDoc {

position:absolute;

z-index:20;

width:150px;

height:300px;

padding:0 10px 20px 590px; /*top right bottom left*/

margin-top:5px;

}

Bonusbana

12:01 pm on Sep 27, 2004 (gmt 0)

10+ Year Member



welcome to webmasterworld!

Please post some relevant html code as well. Is it just mozilla that gives you a headache? have you tried other gecko browsers, safari, opera etc?

Regarding the link - bold - underline issue you might just have forgotten to close a <a> tag somewhere. Try validating your html document using the w3c validator [validator.w3.org].

createErrorMsg

12:02 pm on Sep 27, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I've heard it said here before that you should style links the way you have, with just the pseudoclass but no specific selector, but it seems to me that this (your problem) is the result of doing so. A compliant browser that is able to apply the :hover pseudoclass to elements other than <a> doesn't know that you don't want it to apply :hover to everything on the page. And so, it does. It works how you want in IE because IE does not apply :hover to anything other than <a>nchor tags.

To fix, you need to specify which elements you want the psuedoclasses to apply to. I would use the <a> tag, but I know some folks believe that is just plain wrong. If you are one such folk, you can use an id or class selector...

<a id="firstlink" href="#">Blah</a>

#firstlink:hover {
property: value;
}

Alternately, you might try :link:hover instead of just :hover.

trevor88

1:00 pm on Sep 27, 2004 (gmt 0)

10+ Year Member



Cheers

The :link:hover suggestion works.

The code in the navigation div is

</head>

<p align="center"> <img src="images/sunny_fuerteventura.gif" width="680" height="120" alt="Sunny Fuerteventura"> </p>

<div id="navigation">

<ul>

<li> <a href="nuevohorizonte.html">Nuevo Horizonte</a> </li>

<li> <a href="caletadefuste.html">Caleta de Fuste</a> </li>

<li> <a href="paraiso.html">Apartment Rental</a> </li>

</ul>

</div>

None of the links work and the links are not affected by hovering over them.

At the bottom of the page I have a mailto and a return to the top of the page. The mailto link launches the email, the return to top of page doesn't work.

At the top of the page i have a bitmap that acts as a link. This functions ok. And if i put a link outside of the div it works too.

Thanks for all your help on this

createErrorMsg

3:28 pm on Sep 27, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



None of the links work and the links are not affected by hovering over them.

This sounds like you have a transparent element overlapping the links. Have you used and z-indices, overlapped absolute positioning, or negative margins on the page that might have placed one element over another?

trevor88

5:02 pm on Sep 27, 2004 (gmt 0)

10+ Year Member



Thanks for that. The problems seem to come from me not knowing what i am doing.
I swapped the z indices around and that sorted the links. exceprt for the return to the top of the page bit.
Thanks

Trevor

createErrorMsg

7:41 pm on Sep 27, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



The problems seem to come from me not knowing what i am doing.

I have this same problem in nearly every area of my life. ;) Dont' sweat it; it's all about the learning.