Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Center Shop CSS with background image


Micke

Recommended Posts

Posted

Hi All!

I installed Center Shop CSS ms2 and it was really simple and worked really well.

Now that the shop is centered and fine I'd like to have a nice gradient background like they have at this beautiful 'Enshi Lifestyle' site here.

When I try to 'mimic' that page design with margins and backgrounds the top margin gets white... I want to have the gradient image in the background above the shop aswell, of course...

How do I remove that white margin?

Here's the CSS in my includes/heading.php

 <DIV style="BACKGROUND: url(../images/gradient.gif) repeat-x; MARGIN: 0px; TEXT-ALIGN: center; layer-background-image: url(../images/gradient.gif); border: 1px none #000000;"><!-- Center Shop CSS ms2 -->
<DIV style="margin-top: 10px; WIDTH: 900px; TEXT-ALIGN: left; background-color: #FFFFFF;"><!-- Center Shop CSS ms2 -->

//Micke

Posted
Not 100% but try removing this part of the code

background-color: #FFFFFF;

 

Thank you, but the second div sets the background for "the shop" and I want that background white just as the other site has.

(and when I do remove that "background-color: #FFFFFF;" the white is still there in the top of the page, anyway)

 

//Micke

Posted

Micke,

 

Just another guess, but try setting [ <DIV style="margin-top: 10px; ] to 0px

 

 

Pete

Archived

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

×
×
  • Create New...