Try to search your question here, if you can't find : Ask Any Question Now ?

Google search box needs to be moved to the middle of the screen (X:0 Y:0)

HomeCategory: stackoverflowGoogle search box needs to be moved to the middle of the screen (X:0 Y:0)
Avatarbhawya asked 1 month ago

I am making a website in order to create a chrome new-tab extension, so to make that I need a search bar – My google search bar is in the top left corner of the page and I need it in the middle, sort of like the google home page search bar.

I have researched on websites such as https://w3schools.com and https://w3docs.com and could not find much

this is my current code:

<!DOCTYPEhtml>
<html>
<form method="get" action="http://www.google.com/search">

<div style="border:2px solid black;padding:16px;width:60em;">
<table border="0" align="center" cellpadding="0">
<tr><td>
<input type="text"   name="q" size="100" style="color:#808080;"
maxlength="255" value="Google site search"
onfocus="if(this.value==this.defaultValue)this.value=''; this.style.color='black';" onblur="if(this.value=='')this.value=this.defaultValue; "/>
<input type="submit" value="Go!" />
<input type="hidden" name="sitesearch"/></td></tr>
</table>
</div>
</form>
</html>

the output is that the search box (as stated above) the box is in the corner.

1 Answers
Best Answer
AvatarFernando answered 1 month ago
Your Answer

8 + 1 =

Popular Tags

WP Facebook Auto Publish Powered By : XYZScripts.com