Kristofor Posted April 1, 2003 Share Posted April 1, 2003 hi everyone. iv been trying to change my page width so i have a set width for the whole page and have it centred in the middle. i tried the way in the wiki doccumentation and all it did was resize the header and footer and then it took the center boxes and right column and shoved it down underneath the left column and didnt work. Then i tried the way that is in tips and tricks about wraping the page in a table. I tried that and it only changed the header and footer not anything else. What should i do to make it a fixed width. Or do u think it is better i stick with 100% have a look at my site then tell me what i should do. Thanks kristofor Don't die with the music in you!!! Failure is just another boundary to sucess!!! But that doesn't mean your getting somewhere... Link to comment Share on other sites More sharing options...
Madinson Posted April 1, 2003 Share Posted April 1, 2003 This should work(has been posted in this forum..by, sorry I forgot..): 1. In <your-path-to-osc>/catalog/includes/application_top.php, add this definition Code: define('PAGE_WIDTH', '750'); // how wide the pages should be, in pixels (default: '100%') 2. In <your-path-to-osc>/catalog/includes/header.php, change this line(around line 50) Code: <table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr class="header"> to Code: <table border="0" width="<?php echo PAGE_WIDTH; ?>" cellspacing="0" cellpadding="0"> <tr class="header"> ----------------- Then, change this (around line 57) Code: <table border="0" width="100%" cellspacing="0" cellpadding="1"> <tr class="headerNavigation"> to Code: <table border="0" width="<?php echo PAGE_WIDTH; ?>" cellspacing="0" cellpadding="1"> <tr class="headerNavigation"> ------------------ Finally, add this right at the end Code: <table border="0" width="<?php echo PAGE_WIDTH; ?>" cellspacing="0" cellpadding="0"> <td width="100%"> 3. In <your-path-to-osc>/catalog/includes/footer.php, add this to the beginning Code: </td> </table> ------------------- And, change this (around line 15) Code: <table border="0" width="100%" cellspacing="0" cellpadding="1"> <tr class="footer"> to Code: <table border="0" width="<?php echo PAGE_WIDTH; ?>" cellspacing="0" cellpadding="1"> <tr class="footer"> the publisher: [i've just changed the table widths of the header, headerNavigationBar and footer, and wrapped the page body in a table of fixed width.] just create...and sell..sell...sell..... Link to comment Share on other sites More sharing options...
Kristofor Posted April 1, 2003 Author Share Posted April 1, 2003 that was the one int ips and tricks i was referring to. it wouldnt work. it just changed the width of the header and footer the content emained at 100% width. Don't die with the music in you!!! Failure is just another boundary to sucess!!! But that doesn't mean your getting somewhere... Link to comment Share on other sites More sharing options...
Kristofor Posted April 1, 2003 Author Share Posted April 1, 2003 sorry forgot... Is this a problem with my osc version. Im running a janary 20 snapshot. should i take off the whole site and upload to the newest one?? Don't die with the music in you!!! Failure is just another boundary to sucess!!! But that doesn't mean your getting somewhere... Link to comment Share on other sites More sharing options...
Madinson Posted April 2, 2003 Share Posted April 2, 2003 I'm not sure. You should better try an update - or ask one of the older members :lol: just create...and sell..sell...sell..... Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.