
Originally Posted by
phanmale
I'm still not quite sure "why", but in the stylesheet I have changed
#header-search {height: 55px; text-align: center; to 70px and in tpl_search_header.php I have put back the edit from the old to the new, ie:
$content .= zen_draw_input_field('keyword', '', 'size="8" maxlength="30"
padding-top: -10px; style="width: 200px; border-radius: 3px; padding: 8px; font-size:13px;" 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,'class="input" style="position:relative;left:
0px; top:
25px"');}
and it *seems* to be ok in IE, Chrome and Firefox.
Perhaps you could explain what I have done to make the significant change? (it looks right to me, anyhow!)

On the updated version #header-search {height: 55px; text-align: center;} is there in cause someone removes the header search it does not push everything up.
There are 2 parts that effect the position and padding of the header search that were updated, On the bottom of tpl_search_header.php
Code:
$content .= zen_draw_input_field('keyword', '', 'size="8" maxlength="30"; style="width: 200px; border-radius: 3px; padding: 8px; font-size:13px;" 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,'class="input" style="position:relative;left: 10px; top: 15px"');}
The part that effects the placement of the search bar is
Code:
style="width: 200px; border-radius: 3px; padding: 8px; font-size:13px;"
padding makes the space around the words larger and makes the box smaller or bigger
width is the width
font size is the size of the text
At the very end the part that says
Code:
'class="input" style="position:relative;left: 10px; top: 15px"'
is the position of the button. On the stock it lines it up perfectly but the top: 15px is how far from the top it is. so if you need it higher you will lower this number, higher will make the button scoot down further.
The Left: 10px is the position how close to the search bar. If you want less space between the 2 you decrees the number, increasing will give it more space.
Also on the stylesheet I changed what used to be
Code:
FORM, SELECT, INPUT {
display: inline;
padding: 5px;
margin: 0.1em;
margin: 7px 0;
border-radius: 3px;
}
to
Code:
FORM, SELECT, INPUT {
display: inline;
}
the old code gives it additional margin that will push it down and to the right.
that might be what you still have left that is making it not align
Bookmarks