Forums

[resolved] How to add space in between images and texts on the posts (5 posts)

  1. hijirik
    Member
    Posted 3 years ago #

    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!

  2. levani01
    Member
    Posted 3 years ago #

    Use margin for images in 'entry' tag, something like this:

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

  3. hijirik
    Member
    Posted 3 years ago #

    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!!!

  4. reflexionstudios
    Member
    Posted 3 years ago #

    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.

  5. hijirik
    Member
    Posted 3 years ago #

    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!!!

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.