Ness_du_Frat
05-24-2005, 05:16 AM
Hi !!!
Here is something I don't understand at all... Maybe you can give me a hand on this one.
Ok, I have a page ( waooo, really ??? :) ) and on this page, I have anchors.
So, of course, I don't want my anchors to look like links, and I gave them a class...
The problem is the following : I don't get AT ALL the same results in IE and FF...
Here is the code :
<p><a class="anchor" name="histoire" id="hista" href="#menumap" ><strong>Histoire :</strong></a> eh bien, si c'est pas clair, je vois pas... Vous
y trouverez les chapitres des Enfants de l'Ô, au fur et à mesure
des mises à jour. Et peut-être quelques teasers, on verra.</p>
( I put only one here )
and here is my css :
/* Links */
a:link, a:visited, a:active {
text-decoration: none;
}
a:hover {
text-decoration: underline overline;
font-weight:bold;
}
.anchor, .anchor:link, .anchor:visited, .anchor:hover, .anchor:active {
text-decoration:none;
font-weight:bold;
}
p, .normal { /* normal assigns the value 12px to the font */
font-family: Arial, Helvetica, sans-serif;
font-size: 12px;
text-align: justify;
}
p:first-letter { /* puts the first letter of each p element in bold, 16px */
font-size:16px;
font-weight:bold;
}
My problem is :
In IE : the anchor has the properties from both the p element, and the anchor class.
In FF, it's the same, until I put my mouse on the anchor ( hover ). Then , all the properties from p disappear.
What I don't understand is why the element gets any properties from p at all, and why it's so different on IE and FF.
I tried assigning the first-letter parameter to my anchor class, and it worked fine on FF, but on IE, I had the underline and overline, exactly like my default a css, although I specified : text-decoration : none;
I don't really know if it's a bug, or if it's something I've done wrong...
Any help would be great !!!
( what I'd like to have is what I have in IE : an anchor with the look of the p element ( first-letter ) )
edit : Maxthon, IE and Opera react the same, whereas Netscape and FF do the strange hover thing... ( not very surprising, as the core is the same )
Here is something I don't understand at all... Maybe you can give me a hand on this one.
Ok, I have a page ( waooo, really ??? :) ) and on this page, I have anchors.
So, of course, I don't want my anchors to look like links, and I gave them a class...
The problem is the following : I don't get AT ALL the same results in IE and FF...
Here is the code :
<p><a class="anchor" name="histoire" id="hista" href="#menumap" ><strong>Histoire :</strong></a> eh bien, si c'est pas clair, je vois pas... Vous
y trouverez les chapitres des Enfants de l'Ô, au fur et à mesure
des mises à jour. Et peut-être quelques teasers, on verra.</p>
( I put only one here )
and here is my css :
/* Links */
a:link, a:visited, a:active {
text-decoration: none;
}
a:hover {
text-decoration: underline overline;
font-weight:bold;
}
.anchor, .anchor:link, .anchor:visited, .anchor:hover, .anchor:active {
text-decoration:none;
font-weight:bold;
}
p, .normal { /* normal assigns the value 12px to the font */
font-family: Arial, Helvetica, sans-serif;
font-size: 12px;
text-align: justify;
}
p:first-letter { /* puts the first letter of each p element in bold, 16px */
font-size:16px;
font-weight:bold;
}
My problem is :
In IE : the anchor has the properties from both the p element, and the anchor class.
In FF, it's the same, until I put my mouse on the anchor ( hover ). Then , all the properties from p disappear.
What I don't understand is why the element gets any properties from p at all, and why it's so different on IE and FF.
I tried assigning the first-letter parameter to my anchor class, and it worked fine on FF, but on IE, I had the underline and overline, exactly like my default a css, although I specified : text-decoration : none;
I don't really know if it's a bug, or if it's something I've done wrong...
Any help would be great !!!
( what I'd like to have is what I have in IE : an anchor with the look of the p element ( first-letter ) )
edit : Maxthon, IE and Opera react the same, whereas Netscape and FF do the strange hover thing... ( not very surprising, as the core is the same )