For some reason the asp:button's in IE7 add an extra 100px's (or so...) to the left of the button. this creates a problem for my css styling. Sure, I could go in and overwrite each individual button by giving it exact pixel dimensions.., but that would be a pain in the ass since the application my companies building has nearly 50 pages involved with about 10 buttons per page (you can do the math!). I would much rather let asp:button grow as it needs to depending on the size/width of the text.
Any help would be much appreciated.
ASPX (html)
<div class="sales-order-buttons">
<asp:Button ID="btnSearchSalesOrders" runat="server" Text="Search Sales Orders" />
<asp:Button ID="btnViewAssociatedOrders" runat="server" Text="View Associated Orders" />
</div>
CSS
input[type="submit"] {
background: url("../images/arrow.png") no-repeat left red;
color: #006aae;
float: left;
text-align: left;
display: block;
width: auto;
margin-left: 10px;
text-indent: 40px;
}
input[type="submit"]:hover {
color: #009CFF;
cursor: pointer;
}