Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Fixed Width with CSS


Guest

Recommended Posts

Hello,

 

Long time since I've asked anything on here, I'm just trying to get back into using OSCommerce and have a fresh install that I am trying to put the fixed width contribution onto.

 

I have changed the stylesheet, the header and the footer and it doesn't work. I'm checked and double checked that I have put in all that is in the contribution.

 

In the stylesheet I have added: .

 

BODY {
 text-align: center;
 background: #ffffff;
 color: #000000;
 margin: 0px;
}

.fixcenter {
 width: 758px;
 border: solid; border-width: 1px;
 background: #ffffff;
 color: #000000;
 margin: auto;
 margin-top: 20px;
 text-align: left;
}

 

I've added <div class="fixcenter"> to the header and </div> to the footer. Why won't it work?

 

Thanks

Link to comment
Share on other sites

  • 1 month later...
Hello,

 

Long time since I've asked anything on here, I'm just trying to get back into using OSCommerce and have a fresh install that I am trying to put the fixed width contribution onto.

 

I have changed the stylesheet, the header and the footer and it doesn't work. I'm checked and double checked that I have put in all that is in the contribution.

 

In the stylesheet I have added: .

 

BODY {
 text-align: center;
 background: #ffffff;
 color: #000000;
 margin: 0px;
}

.fixcenter {
 width: 758px;
 border: solid; border-width: 1px;
 background: #ffffff;
 color: #000000;
 margin: auto;
 margin-top: 20px;
 text-align: left;
}

 

I've added <div class="fixcenter"> to the header and </div> to the footer. Why won't it work?

 

Thanks

 

Make sure that the </div> is the very last thing in your footer.php (in the includes folder) and not before the last ?>. I hope that helps (although it's been a while since you posted the question).

Never underestimate the power of stupid people, especially in groups.

Link to comment
Share on other sites

  • 1 year later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...