Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Help with formating search box


Hangar24

Recommended Posts

Posted

Folks I am trying to clean up my search/quick find box for a cleaner/simpler look. I can't figure out how to get the "go" button to appear just to the right of the search input field. Right now they are on seperate lines and it looks messy (to me). Here is a link to see my search box, and here is the code for my search box:

 

<?php
/*
 $Id: search.php,v 1.22 2003/02/10 22:31:05 hpdl Exp $

 osCommerce, Open Source E-Commerce Solutions
 http://www.oscommerce.com

 Copyright (c) 2003 osCommerce

 Released under the GNU General Public License
*/
?>
<!-- search //-->
	  <tr>
		<td>
<?php
 $info_box_contents = array();
 $info_box_contents[] = array('text' => BOX_HEADING_SEARCH);

new SearchBoxHeading($info_box_contents, false, false);

 $info_box_contents = array();
 $info_box_contents[] = array('form' => tep_draw_form('quick_find', tep_href_link(FILENAME_ADVANCED_SEARCH_RESULT, '', 'NONSSL', false), 'get'),
						   'align' => 'center',
						   'text' => tep_draw_input_field('keywords', '', 'size="10" maxlength="30" style="width: ' . (BOX_WIDTH-30) . 'px"') . ' ' . tep_hide_session_id() . '<br>' . tep_image_submit('button_quick_find.gif', BOX_HEADING_SEARCH) . '<br>' . BOX_SEARCH_TEXT . '<br><a href="' . tep_href_link(FILENAME_ADVANCED_SEARCH) . '"><b>' . BOX_SEARCH_ADVANCED_SEARCH . '</b></a>');

  new SearchBox($info_box_contents);
?>
		</td>
	  </tr>
<!-- search_eof //-->

Posted

Thank you! I'm sooo close. Now the button and the field don't line up. Do I need to play around with the size of the image, or is there something I can do to make them appear at the same level? thank you!

Posted

Best would be to play around with the image. Trying to format the table cell with vertical-align middle doesn't bring the wanted result since there are multiple lines.

Archived

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

×
×
  • Create New...