Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New Coder
    Join Date
    Sep 2006
    Posts
    70
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Changing Haloscan Comments Text

    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.

    IN INDEX:
    Code:
    <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>
    IN CSS:
    Code:
    .update_comments
    {
    	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.

  • #2
    Senior Coder Arbitrator's Avatar
    Join Date
    Mar 2006
    Location
    Splendora, Texas, United States of America
    Posts
    3,276
    Thanks
    28
    Thanked 272 Times in 266 Posts
    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.
    For every complex problem, there is an answer that is clear, simple, and wrong.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •