Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9131837
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T08:12:34+00:00 2026-06-17T08:12:34+00:00

I am trying to include a Google custom Search but it keeps displaying incorrectly.

  • 0

I am trying to include a Google custom Search but it keeps displaying incorrectly. The search icon on the button is missing and it looks as if the bottom of the textbox is cut off.

New member so I can’t post an image.

Code

<div id="header">
  <div class="row">
    <div class="four columns">
      <h1><img src="images/QEFLogo.JPG" /></h1>
    </div>
    <div class="four offset-by-two columns">
      <div id="iso" class="hide-for-small">
        <h1>
          <img src="images/ISO9001.jpg" />
          <img src="images/ISO14001.jpg" />
        </h1>
      </div>
      <div id="gcsearch" class="hide-for-small">
        <gcse:searchbox-only></gcse:searchbox-only>
      </div>
    </div>
  </div>
</div>

No real CSS to speak of…

#gcsearch {
    width:300px;
    position:relative;
    left:-5px;
}

The script is untouched from the generated code by Google.

EDIT Now found that this is the problem. The Google element uses the CSS file default.css on their server. This generates width and height.

On line 126 of that CSS sheet it defines…

.cse .gsc-search-button input.gsc-search-button-v2, 
input.gsc-search-button-v2 {
    height: 13px;
    margin-top: 2px;
    min-width: 13px;
    padding: 6px 27px;
    width: 13px;
}

Bearing in mind I do not have much Javascript knowledge at all, why is this happening and how can I fix it?

I tested the code on a non Foundation page and it renders correctly.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T08:12:35+00:00Added an answer on June 17, 2026 at 8:12 am

    It was an issue with Foundation framework. Added the following to the button and resolved. The classes referred to are generated by Google which is why they do not show on my code above.

    input.gsc-search-button, input.gsc-search-button:hover, input.gsc-search-button:focus {
    background-image: inherit;
    box-sizing: content-box;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm creating a Google Site Search custom search engine and I'm trying to display
I am trying to perform searches in Japanese using the custom google search api
I am trying to include an IF within my LET in LINQ but i
I'm trying to include a hyperlink in my email but it is just showing
I am trying to include <% @using System.Web.Script.Serialization%> but it is giving me error
I was trying to build Google Protocol 64bit in Vs2010 but I am getting
I'm trying to create my first custom Google Gadget to be used privately in
I'm trying to include an ad bar at the bottom of my web board.
I am trying to include the following Tag In Google App Engine Web Application:
I'm trying to include the Google Website Optimizer JavaScript code, below, in a Zope3

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.