WordPress.org

Support

Support » How-To and Troubleshooting » Add margin to picture…

Add margin to picture…

  • 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

Viewing 2 replies - 1 through 2 (of 2 total)
  • 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.

    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?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Add margin to picture…’ is closed to new replies.