Padding around a text-wrapped image?

[ad_1]

I’m adding images (align left or right) and it looks fine where I’m editing. But then when I publish the post (it publishes in my Elementor template), the text is smooshed right up against the picture. Is there some way to add some padding to it so that doesn’t happen?

[ad_2]
1 Comment
  1. Yes. Your theme should have these css classes but if it doesn’t then you can add them yourself

    img.alignright { float: right; margin: 0 0 1em 1em; } img.alignleft { float: left; margin: 0 1em 1em 0; } img.aligncenter { display: block; margin-left: auto; margin-right: auto; } .alignright { float: right; } .alignleft { float: left; } .aligncenter { display: block; margin-left: auto; margin-right: auto; }

    The 1ems are the margin between the text and the image. You can increase it.

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer