This thread is over two years old and may be outdated. Please create a new thread if you need help, or email us if you have an active Premium license.

Remove image padding

Open 1 reply generalpremium
10 years ago · Last reply by Andrew Misplon 10 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.

Need fast email support? Get SiteOrigin Premium

Replies

1
  1. Andrew Misplon Staff 10 years, 4 months ago

    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.

Have a different question or issue?

Start New Thread