ESX Virtualization

VMware ESXi, vSphere, VMware Backup, Hyper-V... how-to, videos....

Nakivo Backup and Replication - #1 Backup solution for Virtual, physical, cloud, NAS and SaaS

Menu
  • Certification
      • VCP-DCV vSphere 8
          • vcp2024-125.
        • Close
    • Close
  • VMware
    • Configuration Maximums
    • vSphere
      • vSphere 8.0
      • vSphere 7.0
      • vSphere 6.7
      • vSphere 6.5
      • vSphere 6.0
      • Close
    • VMworld
      • VMware EXPLORE 2024
      • VMware EXPLORE 2023
      • VMware EXPLORE 2022
      • VMworld 2019
      • VMworld 2018
      • VMworld 2017
      • VMworld 2016
      • VMworld 2015
      • VMworld 2014
      • VMworld 2013
      • VMworld 2012
      • VMworld 2011
      • Close
    • Close
  • Microsoft
    • Windows Server 2012
    • Windows Server 2016
    • Windows Server 2019
    • Close
  • Categories
    • Tips – VMware, Microsoft and General IT tips and definitions, What is this?, How this works?
    • Server Virtualization – VMware ESXi, ESXi Free Hypervizor, VMware vSphere Server Virtualization, VMware Cloud and Datacenter Virtualization
    • Backup – Virtualization Backup Solutions, VMware vSphere Backup and ESXi backup solutions.
    • Desktop Virtualization – Desktop Virtualization, VMware Workstation, VMware Fusion, VMware Horizon View, tips and tutorials
    • How To – ESXi Tutorials, IT and virtualization tutorials, VMware ESXi 4.x, ESXi 5.x and VMware vSphere. VMware Workstation and other IT tutorials.
    • Free – Free virtualization utilities, ESXi Free, Monitoring and free backup utilities for ESXi and Hyper-V. Free IT tools.
    • Videos – VMware Virtualization Videos, VMware ESXi Videos, ESXi 4.x, ESXi 5.x tips and videos.
    • Home Lab
    • Reviews – Virtualization Software and reviews, Disaster and backup recovery software reviews. Virtual infrastructure monitoring software review.
    • Close
  • Partners
    • NAKIVO
    • StarWind
    • Zerto
    • Xorux
    • Close
  • This Web
    • News
    • ESXi Lab
    • About
    • Advertise
    • Archives
    • Disclaimer
    • PDFs and Books
    • Close
  • Free
  • Privacy policy

How to Add Padding and Border to Images in WordPress

By Vladan SEGET | Last Updated: November 15, 2022

Shares

Since the release of WordPress 3.9 the advanced options for images are gone. It's no longer possible to use the previous options which allowed to put margins and padding, or image border. In the old version you click on an image, click advanced settings and here you go, you can edit image properties – border, vertical space, horizontal space. The image insertion dialog box does not allows that anymore. So How to Add Padding and Border to Images in WordPress?

Few months ago when Worpress 3.9 has been released I turned myself to a solution where I manually insert a code for margin when I align image in my post. If I for example align left my image and I do not want the text floating around that image not to be glued with the image, I can use this simple snippet which allows to define a margin. (margin right in my example).

style=”margin-right: 10px;”

It's not a big deal, but still you must go and look for that snippet every time you want to use an aligned image with a margin. It's not really what I want to do. So I finally looked around to see what alternatives and which options are offered to fix it.

Option 1: manual

This is the manual way as otulined above. You need to add the margin snippet every time you aligning image to righ or left. So here is an overview how the integration looks like. It's pretty obvious, but manual:

<a href=”https://www.vladan.fr/wp-content/uploads/images/vsphere5.5.jpg”><img class=”alignleft size-full wp-image-29015″ style=”margin-right: 10px;” src=”https://www.vladan.fr/wp-content/uploads/images/vsphere5.5.jpg” alt=”vSphere 5.5 Configuration Maximums” width=”300″ height=”96″ /></a>

Option 2: Additional Plugins

There are some additional plugins that you might use. I haven't tested the first one personally as I try to keep the number of plugins I'm running on a reasonable level… -:) But it seems that this plugin works pretty well.

01. Advanced Image Style

https://wordpress.org/plugins/advanced-image-styles/

02. TinyMCE Advanced

And another one which I'm using (but not only for the adjustment of images) called TinyMCE by Andrew Ozz. You can download the plugin from WordPress plugins repository here:

TinyMCE Advanced

This plugin offers many more options for editing text than the default WordPress text editor and also has the options for advanced image options. (not active by default).

Then if I'd like to Insert an image with alignment to the left, I'd have to click default Add Media WordPress button as usually > Insert Image > align left > OK.

Then you need to select image and click the image icon we have added to TinyMCE menu to actually edit the image options.

image-options2

So while this solves the “problem” of advanced options, TinyMCE Advanced offers tons of other options for text editing. Enjoy…-:) If you want to check other tips for WordPress you might want to have a look at my WordPress Tips page here.

Shares
Vote !

| Filed Under: Free Stuff, How To Tagged With: How to Add Padding and Border to Images in Wordpress

About Vladan SEGET

This website is maintained by Vladan SEGET. Vladan is as an Independent consultant, professional blogger, vExpert x16, Veeam Vanguard x9, VCAP-DCA/DCD, ESX Virtualization site has started as a simple bookmarking site, but quickly found a large following of readers and subscribers.

Connect on: Facebook. Feel free to network via Twitter @vladan.

Comments

  1. L. Civali says

    March 31, 2019 at 6:04 pm

    .gallery-item {
    /* include top padding. Consider important! if necessary
    padding-top: 50px;
    */

    /* Consider height of the images
    height: 400px;
    */

    /* Spaces between images, consider images width
    width: 200px;
    */
    }

Private Sponsors

Featured

  • Thinking about HCI? G2, an independent tech solutions peer review platform, has published its Winter 2023 Reports on Hyperconverged Infrastructure (HCI) Solutions.
  • Zerto: One Platform for Disaster Recovery, Backup & Cloud Mobility: Try FREE Hands-On Labs Today!
Click to Become a Sponsor

Most Recent

  • FREE version of StarWind VSAN vs Trial of Full version
  • Commvault’s Innovations at RSA Conference 2025 San Francisco
  • VMware ESXi FREE is FREE again!
  • Installation of StarWind VSAN Plugin for vSphere
  • Protect Mixed environments with Nakivo Physical Machine recovery (bare metal)
  • No more FREE licenses of VMware vSphere for vExperts – What’s your options?
  • Tails – Your Private OS on USB Stick
  • StarWind V2V Converter Now has CLI
  • Veeam VHR ISO v2 – 2025 Download and Install
  • Deployment OVA and Installation of Nakivo Backup and Replication for VMware

Get new posts by email:

 

 

 

 

Support us on Ko-Fi

 

 

Buy Me a Coffee at ko-fi.com

Sponsors

Free Trials

  • DC Scope for VMware vSphere – optimization, capacity planning, and cost management. Download FREE Trial Here.
  • Augmented Inline Deduplication, Altaro VM Backup v9 For #VMware and #Hyper-V – Grab your copy now download TRIAL.

VMware Engineer Jobs

VMware Engineer Jobs

YouTube

…

Find us on Facebook

ESX Virtualization

…

Copyright © 2025 ·Dynamik-Gen · Genesis Framework · Log in