Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Aligning Search Box Question


dcwebpixie

Recommended Posts

Posted

I am not sure if I am posting this in the right place?

 

I am using the following script for my search box. I am also using a custom image instead of the default gray "Search" button. However, I am having a hard time aligning the image vertically in the middle next to the search box. In other words, you have the search box and then to the right you have the image. The image is too high up next to the search box. I am trying to align it in the middle so that it does not look out of place.

 

I know very little PHP so I am hoping someone may be able to help.

 

<?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_input_field('keywords', '', 'size="10" maxlength="30" style="width: ' . (BOX_WIDTH+10) . 'px"') . ' ' . tep_hide_session_id() .'<input name="image" type="image" src="/catalog/images/search/search_go.gif" alt="submit" width="20" height="20" border="0">' . '</form>'; ?></td>

 

Thanks!!

Posted
I am not sure if I am posting this in the right place?

 

I am using the following script for my search box. I am also using a custom image instead of the default gray "Search" button. However, I am having a hard time aligning the image vertically in the middle next to the search box. In other words, you have the search box and then to the right you have the image. The image is too high up next to the search box. I am trying to align it in the middle so that it does not look out of place.

 

I know very little PHP so I am hoping someone may be able to help.

 

<?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_input_field('keywords', '', 'size="10" maxlength="30" style="width: ' . (BOX_WIDTH+10) . 'px"') . ' ' . tep_hide_session_id() .'<input name="image" type="image" src="/catalog/images/search/search_go.gif" alt="submit" width="20" height="20" border="0">' . '</form>'; ?></td>

 

Thanks!!

 

Not PHP question it's HTML....:)

 

 

<?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_input_field('keywords', '', 'size="10" maxlength="30" style="width: ' . (BOX_WIDTH+10) . 'px"') . ' ' . tep_hide_session_id() .'<input name="image" type="image" src="/catalog/images/search/search_go.gif" VALIGN=CENTER alt="submit" width="20" height="20" border="0">' . '</form>'; ?></td>

Posted
If that doesn't work try using BOTTOM instead of CENTER

~~~Tapuahk

Thanks T! Still not working but I will continue playing with it. Thanks again!!

Archived

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

×
×
  • Create New...