I don't really understand your question. It isn't clear to me what you want, what you get, and where they differ.
you may suffer from cache effects; try CTRL/F5 to force the browser to reload the page and its dependencies (the CSS files).
you probably could simplify by assigning more than one class to those anchor tags, as in:
echo('<a href="'.$linkname.'" class="linkidiomaseleccionat mySpecialColorScheme">AAAA</a> | ');
Luc Pattyn [Forum Guidelines] [My Articles]
Nil Volentibus Arduum
Please use <PRE>
tags for code snippets, they preserve indentation, improve readability, and make me actually look at the code.