?
Solved

Put some white space between images in WordPress footer content

Posted on 2016-11-11
2
Medium Priority
?
85 Views
Last Modified: 2016-11-24
Hi All

I have removed an image permanently from a site but now all of the images have shifted to the left.

I would like to add blank spaces between the images equally across the screen, I have found quite a few references on google but refer to older versions than the one I am using (WordPress 4.6.1) or people have coded differently in HTML

Here is some sample code of 2 out of the 4 images of which I want to add the spacing between, could someone please advise how I would do this

<div id="footer-one-image"><a href="http://www.lindahillfitness.co.uk/health-check" target="_parent" border="none"><img src="http://www.lindahillfitness.co.uk//website_images/footer-one-pic3.jpg" width="184" height="180" border="0" alt="Health check" title="Health Check"></a>
<p class="footer-one-text"><a class="footer-one-text" href="http://www.lindahillfitness.co.uk/health-check" target="_parent" border="none">Health<br>check</a></p></div>

<div id="footer-one-image"><a href="http://www.lindahillfitness.co.uk/wellness" target="_parent" border="none"><img src="http://www.lindahillfitness.co.uk/website_images/footer-one-pic4.jpg" width="184" height="180" border="0" alt="Wellness" title="Wellnessl"></a>
<p class="footer-one-text"><a class="footer-one-text" href="http://www.lindahillfitness.co.uk/wellness" target="_parent" border="none">Wellness</a></p></div>

Open in new window

0
Comment
Question by:IM&T SRFT
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 53

Accepted Solution

by:
Scott Fell,  EE MVE earned 2000 total points
ID: 41884227
You can either add padding or margin around your images.  You should have a child theme to modify and add css.

To add padding to all images
img {
   padding:20px;
}

Open in new window


To target your footer images only
#footer-one-image img {
   padding:20px;
}

Open in new window


Your code above have 2 div's with the same id. Perhaps you have that just from making a sample, but id's need to be unique. Classes can be the same.

Creating a child theme if you have not done so already is easy.  Make a new folder that  matches the current theme and add a "-child" and follow the instructions here to add a css and other files https://codex.wordpress.org/Child_Themes.  By using a child theme, when you  make modifications, they will not be overwritten when you update the parent theme.
0
 

Author Comment

by:IM&T SRFT
ID: 41888203
Thank you for the response

Sorry for the silly question but where do I place this code?

img {
   padding:20px;
}

Someone else designed the website so I will investigate their use of the same ID's
0

Featured Post

Video: Liquid Web Managed WordPress Comparisons

If you run run a WordPress, you understand the potential headaches you may face when updating your plugins and themes. Do you choose to update on the fly and risk taking down your site; or do you set up a staging, keep it in sync with your live site and use that to test updates?

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Is your Office 365 signature not working the way you want it to? Are signature updates taking up too much of your time? Let's run through the most common problems that an IT administrator can encounter when dealing with Office 365 email signatures.
This article shows the steps required to install WordPress on Azure. Web Apps, Mobile Apps, API Apps, or Functions, in Azure all these run in an App Service plan. WordPress is no exception and requires an App Service Plan and Database to install
The purpose of this video is to demonstrate how to Import and export files in WordPress. This will be demonstrated using a Windows 8 PC. Go to your WordPress login page. This will look like the following: mywebsite.com/wp-login.php : Click on Too…
The is a quite short video tutorial. In this video, I'm going to show you how to create self-host WordPress blog with free hosting service.
Suggested Courses

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question