dbltoe:
firebug should put an icon in your lower right-hand border of the browser. Or, use Tools --> Firebug -- Open Firebug. Using Inspect will allow you to see what's going on. The firebug window on the right will allow you to make changes to an EXISTING css call.:cool:
Thanks ! I have used that to inspect several things and it has helped alot ! :)
I have a question though. My searchbox text input area was a little too wide for my template, it went to the right of the sidebox border so I used the Firebug to inspect it. Firebug found this in the CSS.
element.style {
width:145px;
}
and this in the html
<input type="text" style="width: 145px;" maxlength="100" size="18" name="keyword"/>
I searched everywhere in the CSS for that code and it wasn't there. I also checked the tpl_search.php for that exact code and it wasn't there. Here is what is in the tpl_search.php file
$content .= zen_draw_input_field('keyword', '', 'size="18" maxlength="100" style="width: ' . ($column_width-30) . 'px"') . '<br />' . zen_image_submit (BUTTON_IMAGE_SEARCH,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-30) . 'px" 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" />';
I used the Developers Tool in the Admin of Zencart to search and I also used PowerGREP which searches through files for specified text. Couldn't find it anywhere. So I went ahead and added the element.style code to my CSS and added the ( 130px ) to the tpl_search.php file like this...
$content .= zen_draw_input_field('keyword', '', 'size="18" maxlength="100" style="width: 130px ' . ($column_width-30) . 'px"') . '<br />' . zen_image_submit (BUTTON_IMAGE_SEARCH,HEADER_SEARCH_BUTTON);
It worked and changed the size of the text input area to what I need , but now Firefox shows this error
Warning: Expected end of value for property but found '145px'. Error in parsing value for property 'width'. Declaration dropped.
So, my questions are.. where in the world is this 145px coming from ? Where did Firefox find the element.style code ? It is there now because I added it but why did it show it was there before I added it when it wasn't ? And I still can't find the 145px in any zencart file.
I found this doing a search on the Firefox error..
http://www.litfuel.net/plush/?postid=101
And am wondering if it is something in the Javascript ? Am totally lost at this point. It works fine, I just hate having that error there and not know if it is going to make something not work in the future or something.