How to Add Space Next to an Image or Photo in WordPress

Posted by Marty Dickinson on Nov 14, 2013

Here’s an easy way to override your css settings. Add an in-line style for the margin. Sure, if you’re going to do this a lot, it would make more sense to add this as part of your css file. But, once in a while when you’re in a pinch it’s a nice quick fix.

<img src=”http://www.yourwebsitedomainhere.com” style=”margin-left: 10px;┬ámargin-right: 10px;”/>

Using these two margin settings would add 10 pixels to the left and right of the image.

See it live on the Sleep Easily website.