Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

aligning button with box


ridesign

Recommended Posts

I have added a search in my header, but in the search button is not in line with the box, but I have spent hours and can not still figure out how to do it, i would would be very grateful if someone can help me out.

 

here is the code

<!-- search_header //-->
  <td valign="bottom" bgcolor="#E01F5F">      
<?php
 $search_string = '';
   $search_string .=   tep_draw_form('quick_find', tep_href_link(FILENAME_ADVANCED_SEARCH_RESULT, '', 'NONSSL', false), 'get');
 $search_string .= tep_draw_input_field('keywords', '', 'size="10" maxlength="30" style="width: ' . (125) . 'px"') . '<valign="bottom"> ' . tep_hide_session_id() . tep_image_submit('search2.gif', BOX_HEADING_SEARCH2);
   $search_string .= '</form>';
echo $search_string;
?>
</td>

 

Thanks in advance

Link to comment
Share on other sites

Try replacing this part of the code

tep_image_submit('search2.gif', BOX_HEADING_SEARCH2);

with this

tep_image_submit('search2.gif', BOX_HEADING_SEARCH2, 'align="middle"');

Link to comment
Share on other sites

Check out the Search Box Anywhere contrib, http://www.oscommerce.com/community/contributions,3295. It will give you a nice clean look and has advanced search features.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...