HTML button

Hi  there,

i'm using this html code to create a submit button

<p><input class="btn btn-info" id="Submit" name="Submit" onmouseout="cbButtonHover(this,'btn btn-info');" onmouseover="cbButtonHover(this,'btn btn-info');" style="padding: 25px 5px 5px 5px;" type="submit" value="Search" /></p>

but the size and padding on the original button against the button once the mouse has gone over it is very different
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Thomas WheelerCommented:
can you post the rest of the code (cbButtonHover) so we can see what its doing?
Zac HarrisSystems Administrator Commented:
Yeah, I looked at the code and it appears to function correctly as far as when the mouse goes over the button it "lights up". But without more of the code it doesn't do anything else.

Also your first padding property "25", when I changed it to 5 in my test environment it corrects the size of the button so it is symmetrical.
Benyaw616Author Commented:
this is my css:

      color: #FFFFFF;
      font-size: 10px;
      font-family: Verdana;
      font-style: normal;
      font-weight: bold;
      text-align: center;
      vertical-align: middle;
      border-color: #FFFF10;
      border-style: solid;
      border-width: 1px;
      background-color: #006B84;
      width: auto;
      height: auto;
      padding: 5px 5px 5px 5px;
      cursor: pointer ;

now i've changed the padding to 5 it doesn't move as much but still does.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Zac HarrisSystems Administrator Commented:
Your code is missing the class you have assigned to the button. Can you please post your entire code for better assistance?
Benyaw616Author Commented:
provide to be the answer
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.