Create Line Spacing


When working on posts or pages in WordPress you sometimes need to create vertical spaces between elements (text, pictures, videos) with spacing. Below there is a space that was created by a transparent file 20 pixels in height and 20 pixels in width



The best way to do this is with a transparent png image that you can resize in your HTML code in the Text editor. You can insert the image with the Add Media button, remove the class and then adjust the width and height settings to what you need. In WordPress, you cannot by default change the aspect ratio of your images. You therefore must make your width and height the same number of pixels. Below is the code I used, without revealing my directory structure on the web server.

<img src="http://porterwebsites.com/.../1x1.png" alt="" width="20" height="20" />

Leave a comment

Your email address will not be published. Required fields are marked *