Click here to Skip to main content
15,558,870 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello just took and was wondering if anyone knew or if there is a way to add some styling to the following search box code foe Ex: button color here is the code for my current search box . Any help and or instructions where to place css code etc if you can let me know thanks in advance .

Here is the code snippet

<form id="frmSearch" class="search2" method="get" action="default.html" />
   <input class="search2" id="txtSearch" type="text" name="serach_bar" size="31" maxlength="255" value="" placeholder="Enter Keyword Search For Here:" style="left: 396px; top: 153px; width: 293px; height: 26px;" />
   <input class="search1" type="submit" name="submition" value="Search Site" />

   <script type=" text/javascript">
       document.getElementById('frmSearch').onsubmit = function() {
           window.location = ' ' + document.getElementById('txtSearch').value;
           return false;


What I have tried:

Not sure how to style the button and looked on goof\gle but did not find what i was looking for.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900