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

    Formatting digg with CSS

    Hello all,
    I'm trying to add digg stories to my site & want to format it with css. Digg says you can use CSS with the class names to customize the display. Havent use css before so I'm lost...if someone could hook me up with this I would sure appeciate it.
    I would like to be able to format the links and text differently.

    The code I want to use to add digg is:
    Code:
    <script language="JavaScript" src="(URL address blocked: See forum rules)/diggjs/front/tech_news/0" type="text/javascript"></script>
    I'm going to put it in a frame so just on a blank page.

    Thanx!

  • #2
    New to the CF scene
    Join Date
    Dec 2005
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Code with class name:

    Code:
    <html>
    
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
    <title>digg</title>
    <style>p.digg{ color: blue; }
    </style>
    </head>
    
    <body>
    <html>
    <body>
    <p class="digg">this text is blue<script language="JavaScript" src="http://digg.com/diggjs/front/tech_news/16" type="text/javascript"></script>
    </p>
    </body>
    
    </html>
    again the regualar text is effected but not the JS :confused

  • #3
    New to the CF scene
    Join Date
    Dec 2005
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts
    To the person who needed this as much as me & finds this post via google someday, here is the code you need

    Code:
    <html>
    
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
    <title>digg</title>
    <style>ul.rss-items a {
        color:#000;
        FONT-SIZE:x-small;
     }
     ul.rss-items {
      color:#777;
      FONT-SIZE:x-small;
    }
    </style>
    </head>
    
    <body>
    <html>
    <body>
    <div id="main">  <script language="JavaScript" src="http://digg.com/diggjs/front/tech_news/16" type="text/javascript"></script>
    </div>
    </body>
    
    </html>


  •  

    Posting Permissions

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