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 4 of 4
  1. #1
    New to the CF scene
    Join Date
    Mar 2009
    Posts
    3
    Thanks
    1
    Thanked 0 Times in 0 Posts

    help with javascript widget and styling it with css

    Ok I have the following code:

    <div class="js-kit-rating"></div>

    <div class="js-kit-comments"></div>

    <script src="http://js-kit.com/reviews.js"></script>

    <style>

    .js-poweredBy {display:none; visibility:hidden}

    </style>





    And Im trying to change the style of the main fonts used at the top of it to arial 9 or 10.

    The problem is I cant figure it out, the result of the code is here

    and the how to on changing the stylesheet for this widget is here

    All I want to do is change the "Write a comment and Control panel" font but everything I do doesnt seem to work, does anyone have any ideas?

  • #2
    New to the CF scene
    Join Date
    Mar 2009
    Posts
    3
    Thanks
    1
    Thanked 0 Times in 0 Posts
    all help greatly appreciated im new ahere and completely baffled by css

  • #3
    Senior Coder Rowsdower!'s Avatar
    Join Date
    Oct 2008
    Location
    Some say it's everything.
    Posts
    2,027
    Thanks
    5
    Thanked 397 Times in 390 Posts
    Hello and welcome to the forums!

    If you review the javascript you use to build the rating system (linked from here) it appears to be hard-coded there. I'm not sure if CSS can overcome this.

    If you want to change the appearance I think your best bet is to host a copy of the javascript file on your own server and update the code to display the font the way you want it to. Just save a copy to your local computer and open the file with Notepad or similar (but NOT MSWord) and you can view/update the code.
    Last edited by Rowsdower!; 03-07-2009 at 09:14 PM.
    The object of opening the mind, as of opening the mouth, is to shut it again on something solid. –G.K. Chesterton
    See Mediocrity in its Infancy
    It's usually a good idea to start out with this at the VERY TOP of your CSS: * {border:0;margin:0;padding:0;}
    Seek and you shall find... basically:
    validate your markup | view your page cross-browser/cross-platform | free web tutorials | free hosting

  • Users who have thanked Rowsdower! for this post:

    dunx (03-08-2009)

  • #4
    New to the CF scene
    Join Date
    Mar 2009
    Posts
    3
    Thanks
    1
    Thanked 0 Times in 0 Posts
    thnaks for your reply, I will certainly explore doing that. I have pretty much given up after 2 days of trying to change the font now anyway and resigned myself to the times roman..



  •  

    Posting Permissions

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