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 7666709
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T14:54:10+00:00 2026-05-31T14:54:10+00:00

I have installed a Google Custom Search through Adsense on a website. The results

  • 0

I have installed a Google Custom Search through Adsense on a website. The results that are returned show a gray (#666666) border around each one, with the following CSS:

.gsc-webResult.gsc-result, .gsc-results .gsc-imageResult {
      border-color: #666;
      background-color: white;
}

However, inside the AdSense search setup, I have set the border to #FFFFFF and other colors just to see if it will take affect. It seems like no matter what color I enter for border, the same #666666 is shown. All of the other colors I specify get applied, but not the border.

Any ideas?

Edit: The search results are in an iframe, so I don’t have access to the CSS.

  • 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-05-31T14:54:12+00:00Added an answer on May 31, 2026 at 2:54 pm

    Some basic things like the border colors are customized through your Google control panel. Other things are customized with your own CSS and JavaScript.

    http://code.google.com/apis/customsearch/docs/ui.html

    The following code is inserted in the body on the results page, where the results appear…

    <div id="cse" style="width: 100%;">Loading</div>
    <script src="//www.google.com/jsapi" type="text/javascript"></script>
    <script type="text/javascript"> 
        function parseQueryFromUrl () {
            var queryParamName = "q";
            var search = window.location.search.substr(1);
            var parts = search.split('&');
            for (var i = 0; i < parts.length; i++) {
                var keyvaluepair = parts[i].split('=');
                if (decodeURIComponent(keyvaluepair[0]) == queryParamName) {
                    return decodeURIComponent(keyvaluepair[1].replace(/\+/g, ' '));
                }
            }
         return '';
         }
         google.load('search', '1', {language : 'en'});
         google.setOnLoadCallback(function() {
            var customSearchControl = new google.search.CustomSearchControl(' /* my google api key */ ');
            customSearchControl.setResultSetSize(google.search.Search.FILTERED_CSE_RESULTSET);
            var options = new google.search.DrawOptions();
            options.enableSearchResultsOnly(); 
            customSearchControl.draw('cse', options);
            var queryFromUrl = parseQueryFromUrl();
            if (queryFromUrl) {
                    customSearchControl.execute(queryFromUrl);
            }
        }, true);
    </script>
    

    Here is the link to the Google code wizard.

    More about the JavaScript API

    I’m sorry I could not find the exact links I used just six months ago. The Google Developers documentation now seems to be a complete mess. In the last few minutes, I found several 404 errors and links to pages declared as “deprecated”. Doesn’t anyone at Google proof-read anything?

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have installed Google Toolbox for Mac into Xcode and followed the instructions to
I don't want to have the user install Google Gears so I can show
I have installed Google application engine following instructions here: http://code.google.com/appengine/docs/java/gettingstarted/installing.html However, running dev_appserver.cmd script
I installed Google Chrome Portable on the user's desktop and have the default homepage
I have installed RDFlib 3.0 and everything that is needed, but when I run
I have installed Google App Engine patch and I get the following error when
I have installed google test as it'is described here . But when I try
I have installed the below google tracking code in my site var _gaq =
I have installed rubycas-server on my server. I have a ruby app that supports
I have installed the sweet Google-Maps-for-Rails plugin, which seems to be under active development.

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.