Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

fixed width container


nimwa2

Recommended Posts

well ive been trying to do this

 

http://www.oscommerce.com/community/contributions,4910

 

a fixed width,

a border around the site,

a changeable contrasting color background outside of the fixed width container.

 

Well i have done this before 6 month ago and it was a breeze, but now i just don't know why it isn't working.. Willing to pay someone to find out. Thanks

 

http://img522.imageshack.us/img522/2821/screen01kq0.jpg

 

this is all i get :( the page doesnt center or anything i just get the stupid border box thinggy there :( *crY*

Link to comment
Share on other sites

Recognise this code?

 

BODY {
 background: #ffffff;
 color: #000000;
 margin: 0px;
}

with:
-----

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

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

2.  On-page changes:

In /catalog/includes/header.php
-------------------------------
immediately below this piece of code

 if ($messageStack->size('header') > 0) {
echo $messageStack->output('header');
 }
?>

add

<div class="fixcenter">

In catalog/includes/footer.php
------------------------------

Immediately below the closing php tag

?>

add this

</div>

 

That's my "Fixed Width Site With CSS" contribution - totally ripped off by someone else.

 

Vger

Link to comment
Share on other sites

The </div> below the <div class="fixcenter"> should be deleted in the header.php

 

Ken

commercial support - unProtected channel, not to be confused with the forum with same name - open to everyone who need some professional help: either PM/email me, or go to my website (URL can be found in my profile).

over 20 years of computer programming experience.

Link to comment
Share on other sites

  • 3 years later...

Archived

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

×
×
  • Create New...