Hi,

Help me, Im trying to Align the advanced search button and text from left to center. and Add text inside the search input field.

http://compramosenmiami.com/miami

here the code from tpl_search.php

$content = "";
$content .= '<div id="' . str_replace('_', '-', $box_id . 'Content') . '" class="sideBoxContent centeredContent">';
$content .= zen_draw_form('quick_find', zen_href_link(FILENAME_ADVANCED_SEARCH_RESULT, '', 'NONSSL', false), 'get');
$content .= zen_draw_hidden_field('main_page',FILENAME_ADVANCED_SEARCH_RESULT);
$content .= zen_draw_hidden_field('search_in_description', '1') . zen_hide_session_id();

if (strtolower(IMAGE_USE_CSS_BUTTONS) == 'no') {
$content .= zen_draw_input_field('keyword', '', 'size="18" maxlength="100" style="width: ' . ($column_width-6) . 'px; margin-right:1px;"') . '<br />' . zen_image_submit ('button_search.gif',HEADER_SEARCH_BUTTON);
$content .= '<br /><a href="' . zen_href_link(FILENAME_ADVANCED_SEARCH) . '">' . BOX_SEARCH_ADVANCED_SEARCH . '</a>';
} else {
$content .= zen_draw_input_field('keyword', '', 'size="18" maxlength="100" style="width: ' . ($column_width-6) . 'px; margin-left:5px;" value="' . HEADER_SEARCH_DEFAULT_TEXT . '" onfocus="if (this.value == \'' . HEADER_SEARCH_DEFAULT_TEXT . '\') this.value = \'\';" onblur="if (this.value == \'\') this.value = \'' . HEADER_SEARCH_DEFAULT_TEXT . '\';"') . '<br /><input type="submit" value="' . HEADER_SEARCH_BUTTON . '" style="width: 50px" />';
$content .= '<br /><a href="' . zen_href_link(FILENAME_ADVANCED_SEARCH) . '">' . BOX_SEARCH_ADVANCED_SEARCH . '</a>';
}

$content .= "</form>";
$content .= '</div>';
?>

========================================

If I modify:

if (strtolower(IMAGE_USE_CSS_BUTTONS) == 'no') {
$content .= zen_draw_input_field('keyword', '', 'size="18" maxlength="100" style="width: ' . ($column_width-6) . 'px; margin-right:1px;"') . '<br />' . zen_image_submit

========================================

to:

if (strtolower(IMAGE_USE_CSS_BUTTONS) == 'yes') {
$content .= zen_draw_input_field('keyword', '', 'size="18" maxlength="100" style="width: ' . ($column_width-6) . 'px; margin-right:1px;"') . '<br />' . zen_image_submit

====================================

I get the text in the text input field when "yes", but the template search button image changes to stock button image it comes with. It sort of dynamic and not an image. can't replace it anywere

Still does not solve my alignment issue which I want centered and not left.

The only way I was able to center it momentarly was with,

stylesheet.css (text-align: left) to (text-align:center)

#mainWrapper {
text-align: left;
vertical-align: top;
}


Unfortuantly it centers all text everywhere. I have some understading of css and php. Just not sure what to do here.

Thanks