Reply
Resizing Google Custom Search Engine
Old 03-20-2007, 09:41 AM Resizing Google Custom Search Engine
wilbury's Avatar
Skilled Talker

Posts: 62
Does anyone know how to resize the Google Custom Search Engine so that the box is not as tall? I can make it narrower by adjusting the size attribute but I cannot change the height.

Here is the code:

<!-- Google CSE Search Box Begins -->

<form id="searchbox_007575832373077598145:cn7z4nye9ta" action="http://www.google.com/search">
input type="hidden" name="cx" value="003885832373077598145:cn7z4nye9ta" />
<input type="hidden" name="cof" value="FORID:0" />
<input name="q" type="text" size="40" />
<input type="submit" name="sa" value="Search" />
<img src="http://www.google.com/coop/images/google_custom_search_smnar.gif" alt="Google Custom Search" />
</form>

<!-- Google CSE Search Box Ends -->
wilbury is offline
Reply With Quote
View Public Profile
 
When You Register, These Ads Go Away!
Old 03-20-2007, 12:51 PM Re: Resizing Google Custom Search Engine
chrishirst's Avatar
Super Moderator

Posts: 13,479
Location: Blackpool. UK
just put the form in a container of whatever size you want


or am I missing something?
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
Indifference will be the downfall of mankind, but who cares?
Code Samples | People Counting System
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 03-20-2007, 10:06 PM Re: Resizing Google Custom Search Engine
Tom_M's Avatar
Ultra Talker

Posts: 251
Name: Tom Maurer
Location: Pennslvania, USA
Yea I'm missing something here too. There really isn't anything to do with height here? Unless there isn't enough room in the container where you are putting this search form. In which case the form field and the button are forced to take up two lines. If that is the case either make the box bigger like chris said or shorten the form field a little and change the text on the search button to "Go".
Tom_M is offline
Reply With Quote
View Public Profile
 
Old 03-21-2007, 07:58 PM Re: Resizing Google Custom Search Engine
wilbury's Avatar
Skilled Talker

Posts: 62
Thanks for the reply.

I did solve the height issue by creating a new class for the form. That now works perfectly.

What I can't figure out is why the presence of the form creates space between the row that it's in and the table below. It's as if there is another row being created. Removing the Google form (and leaving the row and cells intact) renders the page as normal.

Whether I view it in standard, expanded or layout view (in Dreamweaver) I cannot see the presence of any cell or table.
wilbury is offline
Reply With Quote
View Public Profile
 
Old 03-22-2007, 03:27 AM Re: Resizing Google Custom Search Engine
chrishirst's Avatar
Super Moderator

Posts: 13,479
Location: Blackpool. UK
A form is a block element, and as such has an implied line break above and below it.

To remove the effects use
Code:
 
form {
   margin:0;
}
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
Indifference will be the downfall of mankind, but who cares?
Code Samples | People Counting System
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 03-22-2007, 10:15 AM Re: Resizing Google Custom Search Engine
wilbury's Avatar
Skilled Talker

Posts: 62
Works great. Thanks for your help.
wilbury is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Resizing Google Custom Search Engine
 

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.13662 seconds with 12 queries