Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

how do i edit the page width?


FourTwenty

Recommended Posts

I am having the same problem - is it because the instructions say (in part 2)

 

'In /catalogue/includes/header.php' and i don't appear to have a folder called 'catalogue'?

 

I changed the only one I could find but that was in the admin section

 

Thanks

 

Rob

Link to comment
Share on other sites

There are only three changes to make. You put this code in stylesheet.css (replacing the original body tag):

 

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;

}

 

and then in includes/header.php you put this code:

 

<div class="fixcenter">

 

immediately below this piece of code:

 

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

 

And in includes/footer.php you put this tag below the closing php tag:

 

</div>

 

You won't find a simpler way of centering a website than that - and it has the added bonus that it works in all major browsers (which some other centering contributions don't do).

 

Vger

 

okay..

we replaced the code exactly like it said in your text file, and syill no dice..

 

please help.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...