Kristofor Posted July 8, 2003 Share Posted July 8, 2003 hi everyone, i asked this a while back, but noone could help me, this is what i want, i run a 2.2cvs from april, i have inserted an image as a backgroun into the left column, using a stylesheet, the problem is, that i want my boxes to fit into a certain width and allignment in the column, that is, i have my background and i want my boxes to each have a fixed width, and call be alligned to center, so that they dont appear in the wrong spots of my image. can someone help, 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...
Guest Posted July 8, 2003 Share Posted July 8, 2003 If the image is for the small boxes adjust the image size and set the width of the boxes. They are generally set to 125 but can be adjusted. Link to comment Share on other sites More sharing options...
Kristofor Posted July 8, 2003 Author Share Posted July 8, 2003 hmmmm, it didnt make any difference, the image size is bigger, but i see the whole image, and the boxes get resized to the same size as the column, 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...
Guest Posted July 8, 2003 Share Posted July 8, 2003 You should be able to change the table width of the column in default.php. Its around line 49 and looks like this: <table border="0" width="100%" cellspacing="3" cellpadding="3"> <tr> <td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2"> <!-- left_navigation //--> <?php require(DIR_WS_INCLUDES . 'column_left.php'); ?> <!-- left_navigation_eof //--> </table></td> Link to comment Share on other sites More sharing options...
Kristofor Posted July 8, 2003 Author Share Posted July 8, 2003 ok, im still very lost, because i try to change it but it will consistently stay the same width for some reason, 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...
Silencer Posted July 8, 2003 Share Posted July 8, 2003 Can you show us your page? There is always more than one way to do it. And always Keep It Simple, Stupid. Link to comment Share on other sites More sharing options...
Kristofor Posted July 8, 2003 Author Share Posted July 8, 2003 www.righthereit.com/default.php what you can see is that i have a background but i want the infoboxes restricted to the blue area, note that is not the image i was intending on using i just have it there while im getting this working, 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...
Silencer Posted July 9, 2003 Share Posted July 9, 2003 Open /includes/application_top.php Find define('BOX_WIDTH', 125); // how wide the boxes should be in pixels and change to what you want There is always more than one way to do it. And always Keep It Simple, Stupid. Link to comment Share on other sites More sharing options...
Kristofor Posted July 9, 2003 Author Share Posted July 9, 2003 that changes the size of the whole column, this is the code i have in default.php for the left column, <!-- body //--> <table border="0" width="100%" cellspacing="3" cellpadding="3"> <tr> <td width="<?php echo BOX_WIDTH; ?>" valign="top" class="columnleftback"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="4"> <!-- left_navigation //--> <?php require(DIR_WS_INCLUDES . 'column_left.php'); ?> <!-- left_navigation_eof //--> </table></td> <!-- body_text //--> is there something i am doing wrong??? 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 July 9, 2003 Author Share Posted July 9, 2003 ok, i sort of got it figured out, i went into the specific boxes .php file and i changed the <tr> <td> to <tr width="173"><td width="173"> that will sort of do what i want, now just how can i change the background image for each individual box?? 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...
Guest Posted July 9, 2003 Share Posted July 9, 2003 You should be able to change the table width of the column in default.php. Its around line 49 and looks like this: <table border="0" width="100%" cellspacing="3" cellpadding="3"> <tr> <td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2"> <!-- left_navigation //--> <?php require(DIR_WS_INCLUDES . 'column_left.php'); ?> <!-- left_navigation_eof //--> </table></td> Sorry my mistake it is not defined in default.php, it is defined in: catalog :arrow: includes :arrow: application_top.php define('BOX_WIDTH', 150); // how wide the boxes should be in pixels (default: 125) Matt Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.