Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Button V position


FISHdude

Recommended Posts

Posted

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

Posted

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...?

Posted

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.

Posted

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.

 

 

Posted

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;"' )

Archived

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

×
×
  • Create New...