OZONE Asylum
Forums
XML - XSL - XSLT - XHTML - CSS - DOM
A:visited Disappearing Underline Weirdness
This page's ID:
10767
Search
QuickChanges
Forums
FAQ
Archives
Register
Edit Post
Who can edit a post?
The poster and administrators may edit a post. The poster can only edit it for a short while after the initial post.
Your User Name:
Your Password:
Login Options:
Remember Me On This Computer
Your Text:
Insert Slimies »
Insert UBB Code »
Close
Last Tag
|
All Tags
UBB Help
I'm having trouble figuring out why this is happening and how to fix it. What am I missing here? I have a table-based layout where in two TD classes I want no underlining of the links. In one of them, (.menu) I also want them display: block. All the rest of the links should be underlined and all links reverse on hover. The problem is that on the entire page, all TD classes, all links, on A:visited the underline disappears. (Tested in Windows versions of Mozilla 1, Netscape 6 & 7, IE 5.01, 5.5, 6; Opera 5.12, 6.03; Mac not yet tested.) XHTML validates, CSS validates (except on index page where for some weird reason the CSS validator chokes on an <li> tag that looks fine to me and to the XHTML validator.) Clue that I don't quite follow: CSS validator flags this warning: "Line : 26 Level : 2 Redefinition of text-decoration : A:visited" which corresponds to the [b]bolded line[/b] below. CSS in stylesheet 1, <link>ed" A:link, A:visited, A:active { color: #555522; background-color: transparent; text-decoration: underline;} CSS in stylesheet 2, @imported: A { padding: 0 2px;} A:hover { color: #ffffdd; background-color: #555522; text-decoration: none;} TD.horznav A:link, A:visited, A:active { [b]text-decoration: none;[/b]} TD.menu A { display: block; text-decoration: none;} By my understanding, the bolded line above should apply ONLY to links within the TD.horznav cells, not the entire freakin' page. What am I missing? "the most incredible feats are often accomplished by those who have had the most incredible challenges" [This message has been edited by brucew (edited 07-03-2002).]
Loading...
Options:
Enable Slimies
Enable Linkwords
« Backwards
—
Onwards »