Why isn't my submit button centered?
Posted
by William
on Stack Overflow
See other posts from Stack Overflow
or by William
Published on 2010-03-14T19:17:20Z
Indexed on
2010/03/14
19:25 UTC
Read the original article
Hit count: 258
For some reason my submit button isn't centered. http://prime.programming-designs.com/test_forum/viewboard.php?board=0
#submitbutton{
margin: auto;
border: 1px solid #DBFEF8;
background-color: #DBFEF8;
color: #000000;
margin-top: 5px;
width: 100px;
height: 20px;
}
here's the html.
<form method=post action=add_thread.php?board=<?php echo''.$board.''; ?>>
<div id="formdiv">
<div class="fieldtext1">Name</div>
<div class="fieldtext1">Trip</div>
<input type="text" name=name size=25 />
<input type="text" name=trip size=25 />
<div class="fieldtext2">Comment</div>
<textarea name=post rows="4" cols="70"></textarea>
<div class="fieldtext2">Fortune</div>
<input type="checkbox" name="fortune" value="fortune" />
</div>
<input type=submit value="Submit" id="submitbutton">
</form>
© Stack Overflow or respective owner