WordPress.org

Ready to get started?Download WordPress

Forums

Digg Button Formatting in Firefox on Mac (only) (6 posts)

  1. dereknickerson
    Member
    Posted 6 years ago #

    http://www.jakehemming.com/b

    I can't seem to figure out why I get a huge indent on the beginning of each post when viewed with Firefox, and only on a Mac.

    Anyone have any ideas or things I should check to pin this down?

    Thanks!
    Derek

  2. dereknickerson
    Member
    Posted 6 years ago #

    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

  3. dereknickerson
    Member
    Posted 6 years ago #

    And this is in the css:

    .diggLink{

    float: left;

    margin-top: 6px;

    margin-bottom: 5px;

    margin-left: 0px;

    margin-right: 10px;

    }

  4. dereknickerson
    Member
    Posted 6 years ago #

    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

  5. dereknickerson
    Member
    Posted 6 years ago #

    help! thanks :)

  6. BushwackCA42
    Member
    Posted 6 years ago #

    Well this REALLY helped, Thanks Derek

Topic Closed

This topic has been closed to new replies.

About this Topic