Home>Support>Remove image padding

Remove image padding

By Iain McMullen, 8 years ago. Last reply by Andrew Misplon, 8 years ago.

Hi

I have an image at the bottom of my page that I would like to fit to the edge of the content box and right down to the footer so it appears to be part of the footer (which is solid black). I currently have padding on each side and the bottom which I would like to remove please.

If possible, I would like the image to display on every page except the home page.

Many thanks in advance!

URL: http://www.footballandthefirstworldwar.org/football-and-the-first-world-war-project/

This is our free support forum. Replies can take several days. If you need fast email support, please purchase a SiteOrigin Premium license.

  1. 8 years, 11 months ago Andrew Misplon
    Hi, I Work Here

    Hi Iain

    To make life a bit easier can you give this image a white background color, not transparent. Then, try the following CSS:

    /* Footer */
    
    @media (min-width: 960px)
    
    	body:not(.home) #colophon {
    		background: url('http://www.footballandthefirstworldwar.org/wp-content/uploads/2015/01/Soldiers_silhouette_background.png') no-repeat top center;
    		background-size: 100%;
    		padding-top: 280px;
    	}
    
    }
    

    Adjust the padding as required. Right now I’m dropping everything under 960, you’d need to decide if you’re cool with that. It gets tricky if we need this to perform responsively too because we’re using padding to make way for the image. Check it out. This is the easiest way I can think of to template this for you.

Replies on this thread are closed. Please create a new thread if you have a question, or purchase a SiteOrigin Premium license if you need one-on-one email support.

Get The Most Out of SiteOrigin with SiteOrigin Premium

Find Out More