FourTwenty Posted September 11, 2005 Share Posted September 11, 2005 how do i edit the page width? i don't want the page going all the way across the screen.. i want to adjust the width to a smaller dimension. how? Link to comment Share on other sites More sharing options...
♥Vger Posted September 11, 2005 Share Posted September 11, 2005 Look below my name for the Fixed Width Site With CSS contribution link. Vger Link to comment Share on other sites More sharing options...
FourTwenty Posted September 11, 2005 Author Share Posted September 11, 2005 okay.. we replaced the code exactly like it said in your text file, and syill no dice.. please help. Look below my name for the Fixed Width Site With CSS contribution link. Vger <{POST_SNAPBACK}> Link to comment Share on other sites More sharing options...
robhaworth Posted September 12, 2005 Share Posted September 12, 2005 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 More sharing options...
♥Vger Posted September 12, 2005 Share Posted September 12, 2005 If you run your osCommerce website in the root of your domain then you won't have a 'catalog' folder, in which case the files to edit would be includes/header.php and includes/footer.php Vger Link to comment Share on other sites More sharing options...
♥Vger Posted September 12, 2005 Share Posted September 12, 2005 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. <{POST_SNAPBACK}> Link to comment Share on other sites More sharing options...
robhaworth Posted September 12, 2005 Share Posted September 12, 2005 Perfect - absolutely perfect This took me all of 2 seconds to fix (even whilst I cooked the dinner) Now the site looks great Thanks so much Rob Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.