On my website, I have 3 background images applied to the body
element (to give the impression of top, left and bottom borders) like so:
body {
background: url('../image/body-x.gif') repeat-x 0 0,
url('../image/body-x.gif') repeat-x 0 100%,
url('../image/body-y.gif') repeat-y -280px 0;
background-color: #47b48e;
}
This displays fine most of the time as the pages are quite long. But on shorter pages — such as the 404 template http://www.mattpealing.co.uk/asdfadsf — body-x.gif
isn't sticking to the bottom of the page, like so:
I've tried adding the following code (I've read numerous times in the past that this is a common solution):
html, body {
height: 100%;
}
But I can never get that to work. It still doesn't appear at the bottom, and instead it breaks it on the other pages. Such as on the About page, the bottom border image is overlapping the body copy like in this screengrab:
Can anyone see what I'm doing wrong?