Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Background image?


LoganberryGroup

Recommended Posts

HI.

 

Why is my background image at the top?

 

http://www.checkpointdirect.co.uk/

 

I have in the CSS.

 

body {
 background: #ff7d01;
 background-image: url(bgimage.png);
 background-repeat: no-repeat; 
 background-position: center bottom;
 padding: 0;
 color: #000;
 margin: 0px;
 font-size: 11px;
 font-family: tahoma;

 

Any help would be great.

 

Thanks

 

Scott

Link to comment
Share on other sites

It's a 'glitch' in 2.3. The body tag is not cleared.

 

open template_bottom.php and change:

</body>

 

to:

<div class="clear"></div>
</body>

 

same issue exists for the <html> tag

 

PS - make sure you have something like this in one of your stylesheets. It should be included in the 960 grid stylesheet.

clear{clear:both;display:block;overflow:hidden;visibility:hidden;width:0;height:0}

Oscommerce site:

 

 

OSC to CSS, http://addons.oscommerce.com/info/7263 -Mail Manager, http://addons.oscommerce.com/info/8120

Link to comment
Share on other sites

Absolutely. Put the second image in the <html></html> tag. You'll have to clear it in template_bottom.php like the body tag. You might need to create a html selector in the stylesheet.

 
html{ background-image: url(bgimage2.png);}

 

Also, you can use the <div> that opens in template_top.php just below the opening body tag. Since it has an id of 'bodyWrapper' and a class of 'container', you would only need to add the image to the 'bodyWrapper' id or to the class 'container' in the stylesheet. (or create such a selector). This div closes in template_bottom.php just above the closing body tag, and will also need to be cleared.

Oscommerce site:

 

 

OSC to CSS, http://addons.oscommerce.com/info/7263 -Mail Manager, http://addons.oscommerce.com/info/8120

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...