osCmax v2.5 User Manual
Results 1 to 7 of 7

Need help changing page width..

This is a discussion on Need help changing page width.. within the osCmax v2 Customization/Mods forums, part of the osCmax v2.0 Forums category; Using OSCMAX v2 Standard Blue Template I changed my layout width to 1100 px (templates/aabox/main_page.tpl.php) I changed my columns as ...

      
  1. #1
    New Member
    Join Date
    Apr 2007
    Location
    Diamond Bar, CA
    Posts
    22
    Rep Power
    0


    Default Need help changing page width..

    Using OSCMAX v2
    Standard Blue Template

    I changed my layout width to 1100 px (templates/aabox/main_page.tpl.php)

    I changed my columns as well to what i want it

    Now the problem is. my information in the middle has a constrant or something, i cant find where to change the width.

    Here is a picture, dont worry about the images all messed up. See the text in the middle, i want it to be more spread out, need to find where to change the width.

    please help THANKS!



  2. #2
    osCMax Developer

    michael_s's Avatar
    Join Date
    Jul 2002
    Location
    Phoenix, AZ
    Posts
    19,907
    Rep Power
    568


    Default Re: Need help changing page width..

    main_page.tpl.php in /templates/aabox

    Find this:
    Code:
      <!-- TS table added to restrict content in center box  -->
                        <table width="480" border="0" align="center" cellpadding="0" cellspacing="0">
                              <tr>
                                        <td align="center">
                                        <?php
         require (bts_select ('content')); // BTSv1.5
                                        ?>
                                        </td>
                              </tr>
                        </table>
                        <!-- TS end table for center box area -->
    Just change the table width="480" to whatever you need.
    Michael Sasek
    osCMax Developer


    osCmax Installation Service
    - Have our professionals install osCmax on your server - same day service!
    osCmax 2.5 User Manual - the must have beginners guide to osCmax v2.5

    Stay Up To Date with everything osCMax:
    Free osCmax Newsletters - Security notices, New Releases, osCMax News
    osCmax on Twitter - Up to the minute info as it happens. Know it first.

    osCmax Documentation

  3. #3
    New Member
    Join Date
    Apr 2007
    Location
    Diamond Bar, CA
    Posts
    22
    Rep Power
    0


    Default Re: Need help changing page width..

    coo thanks michael that worked great!

    no i have one more problem.

    i changed the "OSCMAX_top_low.jpg" image to 1100x20. uploaded to the image directory. and nothing happens..i checked the property dimension and is says its 750x20..i dont know why is says that..i believe i have to change it in the (templates/aabox/main_page.tpl.php) file?

    if ur confused im talking about its the image under the "Top >> Catalog". its the white bar. it doesnt go all the way to "Check out"

    please help! thanks in advance!


  4. #4
    New Member
    Join Date
    May 2007
    Posts
    9
    Rep Power
    0


    Default Re: Need help changing page width..

    How can set align property for cobalt template.

    My page layout should be aligned left and right. (not contstant width)
    But automaticaly as original oscommerce layout.



  5. #5
    osCMax Developer

    michael_s's Avatar
    Join Date
    Jul 2002
    Location
    Phoenix, AZ
    Posts
    19,907
    Rep Power
    568


    Default Re: Need help changing page width..

    Quote Originally Posted by intensea View Post
    coo thanks michael that worked great!

    no i have one more problem.

    i changed the "OSCMAX_top_low.jpg" image to 1100x20. uploaded to the image directory. and nothing happens..i checked the property dimension and is says its 750x20..i dont know why is says that..i believe i have to change it in the (templates/aabox/main_page.tpl.php) file?

    if ur confused im talking about its the image under the "Top >> Catalog". its the white bar. it doesnt go all the way to "Check out"

    please help! thanks in advance!

    Sorry I missed this question, but that image is changed in stlysheet.css
    Michael Sasek
    osCMax Developer


    osCmax Installation Service
    - Have our professionals install osCmax on your server - same day service!
    osCmax 2.5 User Manual - the must have beginners guide to osCmax v2.5

    Stay Up To Date with everything osCMax:
    Free osCmax Newsletters - Security notices, New Releases, osCMax News
    osCmax on Twitter - Up to the minute info as it happens. Know it first.

    osCmax Documentation

  6. #6
    New Member
    Join Date
    May 2007
    Posts
    9
    Rep Power
    0


    Default Re: Need help changing page width..

    How can set align property for cobalt template.

    My page layout should be aligned left and right. (not contstant width)
    But automaticaly as original oscommerce layout.




    I could not find smilar code which mentioned at Exercise 2 Setting the Width of osCommerce section

    (absent in index.php)
    <!-- body //-->
    <table border="0" width="100%" cellspacing="3" cellpadding="3">
    ..
    Last edited by lm317; 05-28-2007 at 12:21 PM.

  7. #7
    osCMax Developer

    michael_s's Avatar
    Join Date
    Jul 2002
    Location
    Phoenix, AZ
    Posts
    19,907
    Rep Power
    568


    Default Re: Need help changing page width..

    That exercise is only valid for the template included in osCMax. Since you added a new template, you need to familiarize yourself with how it works.

    I have never used that template so I don't know how it is structured. Since it is CSS, you probably want to look in the stylesheet.css file and set the alignment/width there...

    Just looked at the files... There are only a few, and right in stlyesheet.css, it is clearly commented on how to change the width of the template:

    Code:
    /* pageWrapper div for centering and fixing width settings! 2005/08/08 */
    div#pageWrapper {
    position: relative;
    margin: 10px auto; /* sets margin from top of browser page to start of web page */
    width: 770; /* set total pagewidth or set at 100% */
    }
    Here is a good tip... view the source of the page in your browser and look for the width (770 in this case). Then search across all the files of the template with a text editor looking for all instances of the number 770. That will tell you exactly where to look for the setting.

    You can use that method to find just about anything.
    Michael Sasek
    osCMax Developer


    osCmax Installation Service
    - Have our professionals install osCmax on your server - same day service!
    osCmax 2.5 User Manual - the must have beginners guide to osCmax v2.5

    Stay Up To Date with everything osCMax:
    Free osCmax Newsletters - Security notices, New Releases, osCMax News
    osCmax on Twitter - Up to the minute info as it happens. Know it first.

    osCmax Documentation

Similar Threads

  1. Help Changing Left Column Width
    By reniroo in forum osCommerce 2.2 Modification Help
    Replies: 3
    Last Post: 01-29-2007, 06:28 PM
  2. Changing width of New products bar
    By kwiznoz in forum osCmax v2 Customization/Mods
    Replies: 6
    Last Post: 01-14-2007, 03:20 PM
  3. Changing Info Box width
    By DebbieG in forum osCmax v1.7 Discussion
    Replies: 1
    Last Post: 10-05-2003, 06:21 PM
  4. How to set page width?
    By hanool in forum osCmax v1.7 Discussion
    Replies: 2
    Last Post: 09-08-2003, 11:12 AM
  5. Width of Category Page - Can't seem to figure it out
    By nyc-sunflower in forum osCommerce 2.2 Modification Help
    Replies: 1
    Last Post: 04-11-2003, 11:55 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •