M
M
Mixa2015-05-26 21:34:19
Google
Mixa, 2015-05-26 21:34:19

How to remove space from Google custom search?

I use custom search from Google for the site, I use the following code:

<div id="search2" title="Type and hit enter">
<form action="" method="get" id="searchform">
 <input type="text"  name="q" placeholder="Search..."  id="q" />
</form></div>
<gcse:searchresults-only></gcse:searchresults-only>

And this one
<gcse:searchresults-only></gcse:searchresults-only>

which is responsible for displaying a pop-up window with search results, for some reason it takes up space, generating such a space (without this code, everything is ok):
2798b3c7a62b4d9fb812f06a92497d96.png
I don’t know what I should do to get rid of this trouble.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andrey Fedorov, 2015-05-26
@Mixa

It is enough to use the browser inspector CTRL + SHIFT + I to understand which class in css needs to be changed. Don't forget about !important.
If possible, please provide a link to the site.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question