css - Google CSE Stylesheet -


i have created search engine website using google webmaster tools. i'd customise format of results given cse. google offers me download css file in whole, when attach php document inside head section, nothing happens - custom style doesn't work.

when put google's style inside body tag, worked normally. problem way isn't according rules of world wide web consortium, plus code gets "dirty" , untidy if insert such long css code inside body of page.

how can make external style sheet change default appearance of search engine?

were able figure out if external css stylesheet can used custom google search box?

this i've done today, , validates in w3c validator:

check out link: a homepage google custom search , external stylesheet.

if view source, can see downloaded google custom search's "source css" link on "get code" page. uploaded website's server (after changing css liking).

then took script portions of code "get code" page , pasted them in html of homepage, , changed phrase:

google.load('search', '1', {language : 'en', style : google.loader.themes.minimalist}); 

to this:

  google.load('search', '1', {language : 'en', style : src="http://hoodexc.com/css/google-search.css"}); 

if knows java script can tell me better way (just because working doesn't mean it's best way) please let me know. google cse external stylesheet google cse external stylesheet


Comments

Popular posts from this blog

python - Scipy curvefit RuntimeError:Optimal parameters not found: Number of calls to function has reached maxfev = 1000 -

c# - How to add a new treeview at the selected node? -

java - netbeans "Please wait - classpath scanning in progress..." -