...

View Full Version : Resolved Problem with Google Custom Search



besttvoptions
01-16-2011, 06:49 AM
I'm having an issue with my Google Custom Search interface on my site, www.besttvoptions.com (http://www.besttvoptions.com) where the Google image is showing in the search box (as it should be) and also showing in Search button underneath the word search. I can't figure out why or how to fix it. Has anyone seen this or know who I can fix it? Below is my code from google:


<form action="http://www.besttvoptions.com/searchresutls.html" id="cse-search-box">
<div>
<input type="hidden" name="cx" value="partner-pub-1747XXXXXXXXXXXXXXXXXXXXXXXXXXdv" />
<input type="hidden" name="cof" value="FORID:11" />
<input type="hidden" name="ie" value="ISO-8859-1" />
<input type="text" name="q" size="25" />
<input type="submit" name="sa" value=" Search" />
</div>
</form>
<script type="text/javascript" src="http://www.google.com/cse/brand?form=cse-search-box&amp;lang=en"></script>

DJCMBear
01-16-2011, 09:36 AM
Try doing this...


/* Google SEARCH */
#search {font-weight:bold;position:absolute;top:10px;right:170px;left:auto;width:22em}
#search form {margin:0}
#search input {background-image: url('http://www.google.com/coop/intl/en/images/google_custom_search_watermark.gif'); background-repeat:no-repeat; width:auto;margin: 0 0 -1px;height:1.7em}
#search input[type="submit"] {background-image:none;}
#search label {padding:5px 0 0;display:inline}
#search input.f-submit {width:auto;font-size:%99;margin:0 0 -.15em;height:2.95em}

besttvoptions
01-16-2011, 11:46 AM
Thanks DJCMBear. That cleared it right up. For some reason it never occurred to me that the problem could have been with the css. :thumbsup:

DJCMBear
01-16-2011, 12:49 PM
The reason it was doing that is because both the textbox and the submit button are both inputs and you are setting the background image for #search input which indicates both of those.

besttvoptions
01-20-2011, 08:25 AM
Ahh, I thought it almost looked kind of cool with the 'Google' image in the search button but it was really more distracting than anything else. Thanks for clearing everything up for me.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum