Viewing 10 replies - 1 through 10 (of 10 total)
  • Its all coding my brotha..

    Thread Starter dereknickerson

    (@dereknickerson)

    Hmm. Ok. Any idea where or what I should be looking for? Thanks.

    Thread Starter dereknickerson

    (@dereknickerson)

    Help!

    looks like an issue with your digg-this button. the button is centered, and the text floats left of it.

    Thread Starter dereknickerson

    (@dereknickerson)

    Hey thanks for checking it out nathanrice. 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=”https://digg.com/tools/diggthis.js&#8221; 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

    Thread Starter dereknickerson

    (@dereknickerson)

    And this is in the css:

    .diggLink{

    float: left;

    margin-top: 6px;

    margin-bottom: 5px;

    margin-left: 0px;

    margin-right: 10px;

    }

    Thread Starter dereknickerson

    (@dereknickerson)

    Ok, so I removed the

    float: left;

    from the css and that indeed moved the button to the left, but put the text beneath it. I’d like to be able to wrap the text around the button.

    (again, this only happens in FF on Mac)

    Any ideas?

    try setting the width and height of the .diggLink object. if it’s not being centered, then it must either be too wide, or have too much left padding.

    Thread Starter dereknickerson

    (@dereknickerson)

    Ok, so I tried that stuff. Here’s the current css code:

    .diggLink{

    float: left;

    padding-left: 0px;

    padding-right: 5px;

    width: 50px;

    height: 75px;

    margin-top: 5px;

    margin-bottom: 5px;

    margin-left: 0px;

    margin-right: 5px;

    }

    Any more ideas?

    tia

    sorry. this really isn’t a WordPress issue. It seems like it has to be a problem with the diggthis code. You may find more help in the themes support forum, since this is more of a problem with a theme than with WordPress.

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Firefox Formatting Beginning of Each Post Screwy’ is closed to new replies.