Forum How do I...?

table of contents font color and text-decoration on links

illori
I have a basic table of contents, I have tried to style the links in it so they are BLACK and have no underline. no matter what I put in the css or even in line styling i can not get the links to not be a shade of blue and have an underline, is there a default css somewhere that is controlling this?

Some of my code looks like the following
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head>
<style>
a[href]::after { content: leader(".") target-counter(attr(href), page)}
OL { counter-reset: item; padding-left: 0px; margin-left: 20px}
LI { display: block}
LI:before { content: counters(item, ".") " "; counter-increment: item;}
OL#reset { counter-reset: item }
h3 {font-size: 15px; padding-bottom: 0px; margin-bottom: 5px; padding-top: 0px; margin-top: 5px;}
h3 {prince-bookmark-level: none}
</style>
</head>
<body>
<h3><a href="http://wiki.simplemachines.org/smf/Registering">Registering</a></h3>
<ol>
<li><a href="http://wiki.simplemachines.org/smf/Registering#When_and_How_to_Register">When
and How to Register</a></li>


This is before attempting to make the links not blue or underlined. When I add
a{color: #000000; text-decoration: none;}
it seems to change nothing on the page but if I view it in a browser the links are black and without the underline
jim_albright
try adding !important to each of the CSS
a{color: #000000; text-decoration: none !important;}

Jim Albright
Wycliffe Bible Translators

illori
That has not changed anything.
illori
I figured it out, I have a css loading and it has its own definition for links.