htmlcssbackgroundsubmit

Why is a border around my HTML input submit button?


Why is there a weird white border around my HTML input submit button?

Login form

My CSS markup:

.submitbutton
{
    background: url("/Content/SiteImages/button.png") no-repeat scroll 0 0 transparent;
    color: white;
    cursor: pointer;
    height: 26px;
    width: 76px;
    margin-left: 8px;
    margin-top: 12px;
}

Solution

  • HTML buttons always have a border, simply setting border:0; should fix this.