Hey All,
I've run into two roadblocks in my header. The first is the Search box. Im trying to customize it and I know that I have to modify tpl_search_header.php to add images. My problem, and this is probably quite simple, is putting my search field to the left of the search textbox. Here is my code for tpl_search_header:
My second roadblock is my vertical header navigation. If you go to the site im working on at: http://www.celticherbs.com/zenCode:<?php $content = ""; $content .= zen_draw_form('quick_find_header', 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) == 'yes') { $content .= zen_draw_input_field('keyword', '', 'size="6" maxlength="30" style="width: 100px" 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 . '\';"') . ' ' . zen_image_submit (BUTTON_IMAGE_SEARCH,HEADER_SEARCH_BUTTON); } else { $content .= zen_draw_input_field('keyword', '', 'size="6" maxlength="30" style="width: 100px" 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 . '\';"') . ' <input type="image" src="' . DIR_WS_TEMPLATE_IMAGES . 'search.gif" style="vertical-align:bottom;width:93px;height:26px;" alt="' . HEADER_SEARCH_BUTTON . '">'; } $content .= "</form>"; ?>
you'll see that my green header nav bar is acting whacky. Im trying to make it so that when the user hovers over a link, the background to that "linkbox" turns yellow with black text. Ive added padding so that the box (on hover) covers that portion of the nav bar. Am I doing this wrong? Ive seen many nav bars like this but im not sure what needs to be written in the css to create it.



