Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Search button won't align


Hangar24

Recommended Posts

Posted

Hey all, I am pulling my hair out over this stupid little problem. I can't seem to get my "go" button lined up with the input field in the search box. Check out my website to see what I am talking about. I have tried using a smaller "go" image, but it still sits higher than the bottom of the search field. I would like to have them lined up nicely. I included the code for my search.php file. If anyone can help, I would greatly appreciate it!

 

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

 osCommerce, Open Source E-Commerce Solutions
 [url="http://www.oscommerce.com"]http://www.oscommerce.com[/url]

 Copyright © 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() . '' . 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

Have U trird using vspace

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.

Posted
Have U trird using vspace

Yes - I tried vspace - no joy. It seems the search field and the go button are joined and they both move down whatever amount I add to vspace

Posted

This should do it for you:

 

Replace:

 

maxlength="30" style="width: ' . (BOX_WIDTH-30) . 'px"

 

with

 

maxlength="30" style="width: ' . (BOX_WIDTH-30) . 'px; margin-bottom:2"

 

You will need to alter the margin value to suit.

 

Cheers :thumbsup:

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.

Archived

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

×
×
  • Create New...