I have a div
which I'm using as a submit button for my form, but I cannot figure out how to center it. When the margins are set to auto, it ends up being just slightly right off the center of the page and of other div
s with the same css style.
#submit {
background-color: blue;
height: 80px;
width: 720px;
margin: 0 auto;
text-align: center;
}
<form name="algForm">
<div id='submit' onclick="document.forms['algForm'].submit();"></div>
</form>
Thanks.