Forums

[resolved] How to place img outside p-tags? (7 posts)

  1. colognevice
    Member
    Posted 6 months ago #

    Hi!

    i want to set up my page and place the images in the posts OUTSIDE the p-tags.

    The standard routine to include images:
    <p><img...>Lorem ipsum</p>

    What i want:
    <img...>
    <p>Lorem ipsum</p>

    I just want to handle images different via css
    # no padding
    # no background
    that comes from the p-formatting.

    Is this somehow possible, via template arrangement, Backend-Setup, Plugins?

    Thanks for any idea.

  2. esmi
    Theme Diva & Forum Moderator
    Posted 6 months ago #

    It should be possible to handle this using pure CSS.

  3. colognevice
    Member
    Posted 6 months ago #

    I thought the same, but the image is always inside p-tags. Something like

    p img {background:none; padding:0; }

    won't remove that.

    Idea?

  4. esmi
    Theme Diva & Forum Moderator
    Posted 6 months ago #

    Idea?

    Not without seeing a page demonstrating the problem.

  5. colognevice
    Member
    Posted 6 months ago #

    Ok. Anyone else?

  6. Jonathan Christopher
    Member
    Posted 6 months ago #

    Check out Attachments

  7. colognevice
    Member
    Posted 6 months ago #

    Thanks, that hint helped.

    <?php use_the_attachment_image_nolink('full'); ?>

Reply

You must log in to post.

About this Topic