• Resolved hijirik

    (@hijirik)


    Hi-

    I’m trying to add more spaces between images and texts on the posts… it is too tight right now…

    I have

    div.entry-content {
    font: 0.8em Courier;
    line-height:19px;
    padding-top:6px;
    padding-bottom:6px;
    padding-left:8px;
    }
    div.entry-content p{
    margin: 0;
    padding: 0;
    }

    and if I try to add more “line-height” it just adds more spaces in the paragraph, not the images and texts spacing…

    Does anyone have any ideas?
    Thank you so much in advance!

Viewing 4 replies - 1 through 4 (of 4 total)
  • Use margin for images in ‘entry’ tag, something like this:

    .entry img {
    margin-right:10px;
    margin-bottom:10px;
    }

    Thread Starter hijirik

    (@hijirik)

    Thank you!

    it worked when I changed

    div.entry-content p{
    margin: 0;
    padding: 0;
    }

    this part — but this is good to know in the future!

    thank you very much!!!
    Hijiri

    p.s Do you happened to know how to get rid of “time”? I have this code:

    <div class=”entry-date”><abbr class=”published” title=”<?php the_time(‘Y-m-d\TH:i:sO’) ?>”><?php unset($previousday); printf( __( ‘%1$s – %2$s’, ‘sandbox’ ), the_date( ”, ”, ”, false ), get_the_time() ) ?></abbr></div>

    I just want month and date to show, not the time….. Thank you!!!

    http://codex.wordpress.org/Template_Tags/the_date
    http://codex.wordpress.org/Template_Tags/the_time
    http://us.php.net/date

    When posting code, please use backticks and line returns 🙂

    <div class="entry-date">
    	<abbr class="published" title="<?php the_time('Y-m-d\TH:i:sO') ?>">
    		<?php unset($previousday);
    		printf( __( '%1$s – %2$s', 'sandbox' ), the_date( '', '', '', false ), get_the_time() ) ?>
    	</abbr>
    </div>

    Try getting rid of this line:

    printf( __( '%1$s – %2$s', 'sandbox' ), the_date( '', '', '', false ), get_the_time() ) ?>

    and see what happens.

    Thread Starter hijirik

    (@hijirik)

    When posting code, please use backticks and line returns 🙂

    >> oh! sorry about that! I will from now on!!!

    Thank you for the links, I tried getting rid of that line, but it didn’t work, but one of the links you gave me helped and it’s fixed now!!

    Thank you again for all your help!!!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘How to add space in between images and texts on the posts’ is closed to new replies.