Google Search Box Not Displaying Correctly.

Google Search Box is not displaying correctly.  Please see attached image. There is a box inside a box, inside a box...why is it doing this?  I though it might be the divs, but that proved incorrect.  Any idea why it's displaying this way?  I had it in an include.  Think that was the issue I moved it, but got the same results.

http://insurance.illinois.gov/defaultNew.html
GoogleBox.jpg
smitty62Asked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Juana VillaFront-end DeveloperCommented:
Hi,
There is a style to a <td> that is adding the double border. You can add this style to remove it:
.gsc-control-searchbox-only td {
    border: 0;
}

Open in new window


Then you will notice that the search box is all the way to the top. You can add this style to align it with the rest of the nav:

.gsc-control-searchbox-only{
    margin-top: 24px;
}

Open in new window

0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
smitty62Author Commented:
The first CSS worked, the second did not.  The box completely disappeared when I added the top margin.  Is there a way I could add vertical-align:middle so that it will adjust with the screen size change?
0
Juana VillaFront-end DeveloperCommented:
Hi,

Unfortunately, we cannot use vertical-align: middle because the main nav and the search are floating. You can add margin-top to the search in order to align it.

#navbar-main .pull-right {
    margin-top: 20px;
}

Open in new window

0
smitty62Author Commented:
It's working and looking good now.  Thank you for your help.
1
smitty62Author Commented:
Thank you for your help.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
CSS

From novice to tech pro — start learning today.