lindy Posted February 20, 2007 Share Posted February 20, 2007 Is there a way to make all of the product attribute drop down menus the same size? As default, they are as long as the longest word in the option. I have some attributes where the longest option is only 4 letters long and others where there are 40 letters, so the attrributes sections on the product info pages look really messy. Can you help me clean it up? Thanks, Linda Link to comment Share on other sites More sharing options...
davidinottawa Posted February 20, 2007 Share Posted February 20, 2007 Is there a way to make all of the product attribute drop down menus the same size? As default, they are as long as the longest word in the option. I have some attributes where the longest option is only 4 letters long and others where there are 40 letters, so the attrributes sections on the product info pages look really messy.Can you help me clean it up? You can pass in a width parameter using CSS into the product_info.php file. At about line : 166, change this : <td class="main"><?php echo $products_options_name['products_options_name'] . ':'; ?></td> <td class="main"><?php echo tep_draw_pull_down_menu('id[' . $products_options_name['products_options_id'] . ']', $products_options_array, $selected_attribute); ?></td> to this : <td class="main"><?php echo $products_options_name['products_options_name'] . ':'; ?></td> <td class="main"><?php echo tep_draw_pull_down_menu('id[' . $products_options_name['products_options_id'] . ']', $products_options_array, $selected_attribute, 'STYLE="width: 300px";'); ?></td> Where 300px is the width definition( Obviously) :blush: david Link to comment Share on other sites More sharing options...
lindy Posted February 20, 2007 Author Share Posted February 20, 2007 You can pass in a width parameter using CSS into the product_info.php file. At about line : 166, change this : <td class="main"><?php echo $products_options_name['products_options_name'] . ':'; ?></td> <td class="main"><?php echo tep_draw_pull_down_menu('id[' . $products_options_name['products_options_id'] . ']', $products_options_array, $selected_attribute); ?></td> to this : <td class="main"><?php echo $products_options_name['products_options_name'] . ':'; ?></td> <td class="main"><?php echo tep_draw_pull_down_menu('id[' . $products_options_name['products_options_id'] . ']', $products_options_array, $selected_attribute, 'STYLE="width: 300px";'); ?></td> Where 300px is the width definition( Obviously) :blush: david Thanks so much! That works perfectly! Linda Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.