WordPress.org

Support

Support » Themes and Templates » Digg Button Formatting in Firefox on Mac (only)

Digg Button Formatting in Firefox on Mac (only)

Viewing 5 replies - 1 through 5 (of 5 total)
  • Here’s the code for the button:

    <div class=”diggLink”> <script type=”text/javascript”> digg_url = ‘<?php the_permalink() ?>’; digg_title = ‘<?php the_title(); ?>’; //digg_topic = ‘TOPIC’; // replace TOPIC /* Use the output buffer to capture the text output from the_ID() rather than having it rendered to the page. */ digg_bodytext = ‘<?php ob_start(); the_ID(); $postID = ob_get_contents(); ob_end_clean(); /* Get the body of the post, remove HTML, remove carriage returns and line feeds, escape ‘s, return only the first 350 char. */ $postObj = get_post($postID, OBJECT); $body = strip_tags($postObj->post_content); $body = str_replace(chr(10), ”, $body); $body = str_replace(chr(13), ”, $body); $body = addslashes($body); echo substr($body, 0, 350); ?>’; </script> <script src=”http://digg.com/tools/diggthis.js” type=”text/javascript”></script></div>

    As far as I know, and I’m NO expert, the button isn’t centered with html tags. Do you know how I’d go about finding out how or why it might be? btw, it looks fine in Firefox on PC, Safari on Mac, etc.

    Thanks!!!!
    Derek

    And this is in the css:

    .diggLink{

    float: left;

    margin-top: 6px;

    margin-bottom: 5px;

    margin-left: 0px;

    margin-right: 10px;

    }

    If I remove

    float: left;

    from the .diggLink object in the CSS, the image no longer floats in the center, but is left justified, however, the text does not wrap around the button. The text starts beneath the button.

    tia

    help! thanks 🙂

    Well this REALLY helped, Thanks Derek

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Digg Button Formatting in Firefox on Mac (only)’ is closed to new replies.