FISHdude Posted December 17, 2009 Posted December 17, 2009 hello, I've nearly got my site up and running but having moved the search to the header the alignment of the button is too low see here anyone any ideas about how to resolve this? without altering the image? Thanks in advance. Ewan
♥mdtaylorlrim Posted December 17, 2009 Posted December 17, 2009 hello, I've nearly got my site up and running but having moved the search to the header the alignment of the button is too low see here anyone any ideas about how to resolve this? without altering the image? Thanks in advance. Ewan Not without seeing the code. Make sure that the input boxes and the search button both have valign=middle in the table data code. If they are in the same td block that is a different story. Community Bootstrap Edition, Edge Avoid the most asked question. See How to Secure My Site and How do I...?
Bryce F Posted December 17, 2009 Posted December 17, 2009 Not without seeing the code. Make sure that the input boxes and the search button both have valign=middle in the table data code. If they are in the same td block that is a different story. If they are in the same block, you can add a bit of CSS to fine-tune the position. Add something like this in your image tag: style="position: relative; top: -4px;" If you're using the tep image function, you can put this string in as an argument at the end of the function.
FISHdude Posted December 18, 2009 Author Posted December 18, 2009 If they are in the same block, you can add a bit of CSS to fine-tune the position. Add something like this in your image tag: style="position: relative; top: -4px;" If you're using the tep image function, you can put this string in as an argument at the end of the function. Is this the code you need to see? </td> <td align="right" valign="middle"><?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_draw_pull_down_menu('categories_id', tep_get_categories(array(array('id' => '', 'text' => BOX_ALL_CATEGORIES)))) . ' ' . tep_hide_session_id() . tep_image_submit('button_search.gif' , IMAGE_BUTTON_SEARCH, 'align="middle"') . '</form>'; ?></td> </tr> Sorry but coding isnt my strong point.
Bryce F Posted December 18, 2009 Posted December 18, 2009 Sure. See the last part of that code: tep_image_submit('button_search.gif' , IMAGE_BUTTON_SEARCH, 'align="middle"') try: tep_image_submit('button_search.gif' , IMAGE_BUTTON_SEARCH, 'align="middle" style="position: relative; top: -4px;"' )
FISHdude Posted December 18, 2009 Author Posted December 18, 2009 Thanking you, thats been bugging me for ages!
Recommended Posts
Archived
This topic is now archived and is closed to further replies.