View Full Version : Changing Haloscan Comments Text

12-02-2006, 05:58 PM
I'm using halsoscan comments on my site and would like to change how the "comments" link looks by using CSS. I tried using div class to set the style for the text, but it didn't work. This is how I have it set up.


<link rel="stylesheet" type="text/css" href="global.css">
<div class="update_comments"><a href="javascript:HaloScan('Name');" target="_self"><script type="text/javascript">postCount('Name');</script></a></div>


color: #b5b5b5;
font-family: tahoma,arial,helvetica,sans;
font-size: 10px;

P.S: I tried using a.update_comments:link, but it didn't work.

12-02-2006, 07:36 PM
You want to style an anchor element, so why do you have the class on the div element instead of the anchor element? Either move the class or select the anchor element: *.update_comments a.

Iím curious as to why you would have a link and div element together; thatís invalid HTML. Iím also curious as to why you would stick a script element inside an anchor element when you could just alter the contents of the anchor element with firstChild.data, appendChild, or some other method and keep the script separate from the markup.