Forum Moderators: martinibuster

Message Too Old, No Replies

AdSense For Search : Format

Can't get rid of the pesky bottom row

         

androidtech

6:52 pm on Jul 27, 2006 (gmt 0)

10+ Year Member



This is to anyone else using an AdSense For Search box on their site.

When I put the code on a page, it looks fine except there's a big blank row beneath the search form that I really want to get rid of, that pushes down all the page elements beneath it.

I looked at the AdSense code HTML and I'm not quite sure what is causing this. There doesn't seem to be any extra table data cells with non-breaking spaces or other HTML like line break tags that would cause this.

Does anyone know how to get rid of it?

Thanks.

I Will Make It

7:17 pm on Jul 27, 2006 (gmt 0)

10+ Year Member



I have not seen the adsense for search code, but I know it has to come with a <form></form> - tag, and I also know that this tag </form> makes a one lined space under it.

So when you finish the </form> maybe you'll need to put it below a </td> tag, where it's ok to have som white space?

But I don't know, as I said, if there's a chance for you to mess with the form tags inside the adsense code.

netmeg

7:46 pm on Jul 27, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



You can modify the form tag with CSS (I think that's allowed, since it's not directly modifying the Adsense code, but you can always check with Google to be sure)

If you have a style sheet, put a line like this in it:

form { margin:0px; }

That should take care of it (and any other form on your page for that matter)

androidtech

9:30 pm on Jul 27, 2006 (gmt 0)

10+ Year Member



Thanks, that CSS snippet should do it!

Tearabite

2:58 am on Jul 28, 2006 (gmt 0)

10+ Year Member



i've had this same problem since i started using AS for Search.. but i'm a CSS N00b - where does this piece of code go?
I'm using a CMS (Drupal) that has a single CSS template file..

Knappster

3:58 am on Jul 28, 2006 (gmt 0)

10+ Year Member



I use this:

form { margin:0px;display:inline; }

greatstart

4:06 am on Jul 28, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Thanks for the CSS code. It does the job for me!