Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Easy One - Changing size of drop down menu?


Becki

Recommended Posts

Hi,

 

I want to make a drop down menu taller, I have this code:

<?php echo tep_draw_form('search', tep_href_link(FILENAME_ADVANCED_SEARCH_RESULT, '', 'NONSSL', false), 'get') . tep_draw_hidden_field('search_in_description','1') . tep_draw_hidden_field('inc_subcat','1') . tep_draw_input_field('keywords', '', 'size="10" maxlength="30" style="height: 22px; font: 12px; width: ' . (BOX_WIDTH+40) . 'px"') . ' ' . tep_draw_pull_down_menu('categories_id', tep_get_categories(array(array('id' => '', 'text' => BOX_ALL_CATEGORIES)))) . ' ' . tep_hide_session_id() . tep_image_submit('button_search.gif', IMAGE_BUTTON_SEARCH, 'align="absmiddle"') . '</form>'; ?></tr>

 

I've managed to make the input field taller but I can't figure out the correct way of doing the same to the drop down menu...

tep_draw_pull_down_menu('categories_id', tep_get_categories(array(array('id' => '', 'text' => BOX_ALL_CATEGORIES)))) i thought

tep_draw_pull_down_menu('categories_id', tep_get_categories(array(array('id' => '', 'text' => BOX_ALL_CATEGORIES))),'','Height="25"')

might work but it doesn't!

 

many thanks :)

Link to comment
Share on other sites

Hi,

 

I want to make a drop down menu taller, I have this code:

 

 

I've managed to make the input field taller but I can't figure out the correct way of doing the same to the drop down menu...

tep_draw_pull_down_menu('categories_id', tep_get_categories(array(array('id' => '', 'text' => BOX_ALL_CATEGORIES)))) i thought

tep_draw_pull_down_menu('categories_id', tep_get_categories(array(array('id' => '', 'text' => BOX_ALL_CATEGORIES))),'','Height="25"')

might work but it doesn't!

 

many thanks :)

 

I searched else where but still couldn't get it to work - any ideas?

Link to comment
Share on other sites

A drop down is part of a form, so you need to use css to style the form elements.

 

This may help.

Sam

 

Remember, What you think I ment may not be what I thought I ment when I said it.

 

Contributions:

 

Auto Backup your Database, Easy way

 

Multi Images with Fancy Pop-ups, Easy way

 

Products in columns with multi buy etc etc

 

Disable any Category or Product, Easy way

 

Secure & Improve your account pages et al.

Link to comment
Share on other sites

A drop down is part of a form, so you need to use css to style the form elements.

 

This may help.

 

I've also read that the height can't be changed in IE. It seems this is more hassle than its worth! I'd made the search box bigger purley to stand out more but needed the drop down cat box to match next to it. Is there an easy way to fix the text size of the cat box which will increase it's size, but then the text might look silly. i might leave the category drop down box out and just have the search box...

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...