Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Aligning GIF to input field in Quick Search


luddite_jean

Recommended Posts

I've put a Quick Search field in the header, where it's more easily seen. The code works fine, but the GIF isn't aligned to the input field, and it looks messy. Both are aligned to the bottom of the table cell.

 

See image below to see mis-alignment:

 

search.jpg

 

Here's the code I use to generate the Quick Search:

 

<?php

echo '<strong>' . BOX_HEADING_SEARCH . '</strong><br>';

echo tep_draw_form('quick_find', tep_href_link(FILENAME_ADVANCED_SEARCH_RESULT, '', 'NONSSL', false), 'get');

echo tep_image_submit('button_quick_find.gif', BOX_HEADING_SEARCH) . tep_draw_input_field('keywords', '', 'size="10" maxlength="50" style="width: ' . (BOX_WIDTH-50) . 'px"') . ' ' . tep_hide_session_id();

echo '</form>';

?>

 

 

Any ideas?

Link to comment
Share on other sites

im just guessing here, but im guessing that the search image has that extra blue section below it, if so, you can try cropping the picture to exclude the bottom section

 

thats my guess

 

Fraid not!

 

Thanks anyway.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...