WordPress.org

Ready to get started?Download WordPress

Forums

Add margin to picture... (3 posts)

  1. Nineteen85
    Member
    Posted 5 years ago #

    Is it possible to add a margin/buffer to photos when I wrap the text around them?

    I don't want the text to be right next to the photo, I want it offset by a couple of pixels.

    Like this http://www.club1985.com. HereI have added a white border onto the image, but in a new theme I am working on http://www.allsolonetwork.info That wont work as all images have a pin border around them

    Any help would be greatly appreciated.

    Sorry about the poor description

  2. JohnPope
    Member
    Posted 5 years ago #

    The images are using the css class 'alignleft'

    So, what you need to do is to edit your css stylesheet, and add the following to .alignleft

    margin-right:5px;

    You can of course do the same with left, top and bottom margins and change the number of pixels (px) to whatever you want.

  3. Nineteen85
    Member
    Posted 5 years ago #

    Didn't seem to work :/

    I aligned the image in the visual view while editing my post by floating it. Is that something to do with it?

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags