Click here to get back home

Weird CSS Link problem in Firefox

 HomeNewsGroups | Search | About
 comp.infosystems.www.authoring.html    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
Weird CSS Link problem in Firefox Daniel Kaplan 05-14-2008
Posted by Daniel Kaplan on May 14, 2008, 6:53 pm
Please log in for more thread options
So my style sheet has many different types of LINK styles. And they all
work fine on IE, even different styles on the same page.

But in Firefox, all link throughout my site all follow JUST the first link
class on any page.

Any thoughts?

As a side thought, in my style sheet I changed what I guess was the
"Default" link style (as seen below). Was I wrong in doing that?



A:link
{
text-decoration: none;
color: blue;
font-variant: small-caps;
font-size: 100%;
text-decoration: underline;
}





Posted by dorayme on May 14, 2008, 7:30 pm
Please log in for more thread options

> So my style sheet has many different types of LINK styles. And they all
> work fine on IE, even different styles on the same page.
>
> But in Firefox, all link throughout my site all follow JUST the first link
> class on any page.
>
> Any thoughts?

And you don't think a URL is relevant?

--
dorayme

Posted by Daniel Kaplan on May 14, 2008, 8:12 pm
Please log in for more thread options

> And you don't think a URL is relevant?


How about this, if it helps. Below is my style sheet info on links. Keep
the first section
(nested in between the /////////////////////////////////) and all my
different links work in IE, but not in Firefox.
Remove the nested section and it all works in both browsers.

And in my code I use them as <a class="HT" ... when I want one of the
custom ones.

Perhaps I shouldn't be messing with the default? Or maybe I am using the
style sheet incorrectly?

/////////////////////////////////
A:link
{
color: #CC0000;
font-size: 100%;
text-decoration: underline;
font-variant: normal ;
font-weight: bold;
}

A:visited
{
color: #CC0000;
font-size: 100%;
text-decoration: underline;
font-variant: normal ;
font-weight: bold;
}

A:hover
{
color: #CC0000;
font-size: 100%;
text-decoration: underline;
font-variant: normal ;
font-weight: bold;
}

A:active
{
color: #CC0000;
font-size: 100%;
text-decoration: underline;
font-variant: normal ;
font-weight: bold;
}
/////////////////////////////////


A.HT:link
{
color: #CC0000;
font-size: 100%;
text-decoration: underline;
font-variant: normal ;
font-weight: bold;
}

A.HT:visited
{
color: #CC0000;
font-size: 100%;
text-decoration: underline;
font-variant: normal ;
font-weight: bold;
}

A.HT:hover
{
color: #CC0000;
font-size: 100%;
text-decoration: underline;
font-variant: normal ;
font-weight: bold;
}

A.HT:active
{
color: #CC0000;
font-size: 100%;
text-decoration: underline;
font-variant: normal ;
font-weight: bold;
}




A.GHT:link
{
color: #009900;
font-size: 100%;
text-decoration: underline;
font-variant: normal ;
}

A.GHT:visited
{
color: #009900;
font-size: 100%;
text-decoration: underline;
font-variant: normal ;
}

A.GHT:hover
{
color: #009900;
font-size: 100%;
text-decoration: underline;
font-variant: normal ;
}

A.GHT:active
{
color: #009900;
font-size: 100%;
text-decoration: underline;
font-variant: normal ;
}


A.XHT:link
{
color: #008800;
font-size: 110%;
text-decoration: underline;
font-variant: normal ;
}

A.XHT:visited
{
color: #008800;
font-size: 110%;
text-decoration: underline;
font-variant: normal ;
}

A.XHT:hover
{
color: #008800;
font-size: 110%;
text-decoration: underline;
font-variant: normal ;
}

A.XHT:active
{
color: #008800;
font-size: 110%;
text-decoration: underline;
font-variant: normal ;
}




Posted by dorayme on May 14, 2008, 11:31 pm
Please log in for more thread options

>
> > And you don't think a URL is relevant?
>
>
> How about this, if it helps. Below is my style sheet info on links.

And the HTML? And the doctype and ...

How about a URL?

--
dorayme

Posted by Jukka K. Korpela on May 15, 2008, 4:09 am
Please log in for more thread options
Scripsit Daniel Kaplan:

>> And you don't think a URL is relevant?
>
> How about this, if it helps. Below is my style sheet info on links.

Which part of the abbreviation "URL" do you fail to understand?

Which part of the abbreviation "html" in the newsgroup name do you fail
to understand?

Please continue using the same apparently forged From field until you
have a clue. Thank you in advance.

--
Jukka K. Korpela ("Yucca")
http://www.cs.tut.fi/~jkorpela/


Similar ThreadsPosted
Weird formatting problems appearing only in Linux version of FireFox December 23, 2004, 10:47 am
Weird problem with table "padding" December 27, 2007, 12:25 am
Weird z-index problem (images overlay dynamic menus) October 5, 2007, 1:16 am
Jumping link on Firefox November 29, 2006, 8:08 pm
IE6 link colors & CSS override (vs. Firefox) October 20, 2005, 9:06 pm
Open local folder from a link in IE/Firefox + XP SP2 November 17, 2004, 12:22 pm
A FireFox problem: with pre and ex September 13, 2006, 9:39 am
DIV Scrollbar problem in FireFox... May 23, 2005, 7:01 am
iframe problem in firefox February 5, 2006, 9:31 pm
Form problem and Firefox April 6, 2006, 7:54 am

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap