How to Add a Border Around an Image

Add Borders to a Images using HTML & CSS

 

Using HTML/CSS to add borders to an image is easier than what you think. Before you add an image to your post in the text module,  you need to switch to the text editor. Then, you will add the image and see the HTML code of the picture. This will look like the following images.

 

After adding the image to the text module, type this style=”border:5px solid #000000; padding:3px; margin:5px” to add the borders to your images. It will look like the next picture.

 

 

As result of that code, the image will look similar to the next picture.

 

Feel free to make any change to the border width, color, padding, and margin to your images. Also, you can change to the visual editor after you are done with the picture to see the changes that you’ve made. Let us know below if you have any comments or questions; we’d love to hear from you.