Extending The Background

Sometimes you run into the issue of the background “running out” before the page has finished, as shown below.

open-cart-background-running-out-before-content-finishes Sometime the background finishes before the content does. Usually this is because either the image has run out or the container holding the image (usually a DIV element) does not fully encompass its child elements.

This can be either a case of the image running out, or the object that the image is contained in finishing.

If it is because the object the image is in has finished, you can modify the CSS to make the parent element encompass the child elements. The “Getting DIVS To Expand Vertically” article by Robert Sandy explains this problem in more detail and how to fix it.

I found trick 3 (the overflow/height method) to work the best since it is has the least side-effects.

All I had to do was add the line overflow: hidden; to the OpenCarts theme stylesheet.css file.

 

Posted: April 15th, 2013 at 10:32 pm
Last Updated on: April 15th, 2013 at 10:47 pm