Jump to content
  • Checkout
  • Login
  • Get in touch


The e-commerce.

how do i edit the page width?


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





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):



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:




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).





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


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

  • Create New...