Adding a border around an image in WordPress can help highlight the picture within a post or page. This is a pretty easy thing to do and you won't need to edit any CSS or HTML code. Here's how it's done.

<h2>Using WP Image Borders</h2>

<img src="https://itxdesign.com/wp-content/uploads/2015/06/WPImageBorders.png" alt="WP Image Borders" width="743" height="227" class="alignnone size-full wp-image-8303" />

The easiest way to add a border to any image is with the <a href="https://wordpress.org/plugins/wp-image-borders/">WP Image Borders</a> plugin. Start by installing and activating the plugin. Then, you can access it from <strong>Settings&gt;&gt;WP Image Borders</strong> within your dashboard.

<img src="https://itxdesign.com/wp-content/uploads/2015/06/WPImageBordersSettings1.png" alt="WP Image Borders Settings" width="161" height="273" class="alignnone size-full wp-image-8312" />

From the settings menu you will be able to add borders to all your images in WordPress posts with the checkbox for "Add Border to All Images in Blog Posts." 

<img src="https://itxdesign.com/wp-content/uploads/2015/06/BorderAllImages.png" alt="Border All Images" width="624" height="233" class="alignnone size-full wp-image-8304" />

You will also be able to choose the type of border you want to use, along with the width, radius and color.

<img src="https://itxdesign.com/wp-content/uploads/2015/06/CustomizeImageBorders.png" alt="Customize Image Borders" width="460" height="318" class="alignnone size-full wp-image-8306" />

The settings menu will even allow you to add a drop shadow to your images with a different color and size. 

<img src="https://itxdesign.com/wp-content/uploads/2015/06/AddDropShadow.png" alt="Add Drop Shadow" width="430" height="394" class="alignnone size-full wp-image-8307" />

Once you have made your selections, you will want to click the "Save Changes" button. 

If you want a border on all images, you don't have to do anything else. However, if you don't, you will need to add CSS class to images in WordPress and add those classes within the plugin settings.

<h2>How to Add CSS Class to an Image</h2>

All you have to do to add CSS class to an image is upload it into a post, click the edit button and use the advanced options to enter the CSS class. 

<img src="https://itxdesign.com/wp-content/uploads/2015/06/AddCSSClass1.png" alt="Add CSS Class" width="477" height="260" class="alignnone size-full wp-image-8308" />

Just click the update button and you're all set. You will need to go back to the plugin and add the CSS class you chose for the image to the plugin.

<img src="https://itxdesign.com/wp-content/uploads/2015/06/CSSinPlugin.png" alt="CSS in Plugin" width="616" height="86" class="alignnone size-full wp-image-8310" />

Now you can easily add a border to any or all of your images on your WordPress website. Just use the plugin and the instructions provided to create beautiful borders around your images.