dcwebpixie Posted March 29, 2008 Posted March 29, 2008 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!!
tapuahk Posted March 29, 2008 Posted March 29, 2008 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>
tapuahk Posted March 29, 2008 Posted March 29, 2008 If that doesn't work try using BOTTOM instead of CENTER ~~~Tapuahk
dcwebpixie Posted March 30, 2008 Author Posted March 30, 2008 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!!
dcwebpixie Posted March 30, 2008 Author Posted March 30, 2008 Thanks T! Still not working but I will continue playing with it. Thanks again!! Problem Solved! I had to put in align="absmiddle
Recommended Posts
Archived
This topic is now archived and is closed to further replies.