Posts: 3,985
Name: Abel Mohler
Location: Asheville, North Carolina USA
|
I am currently building a website for a moving supplies company. There is one little annoying thing (in IE of course) that has been frustrating me. I have created these custom input buttons on all of his forms, as he requested.
The only problem is there is a little extra padding on each side of the button in Explorer. It wouldn't be a big deal, but it is messing with the layout in a few places, as this button is used thoughout the site. He requested I make it match Firefox.
Here is a stripped down, bare bones example of the html/css:
HTML Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Example</title>
<style>
input.button {
color: white;
font-size: 12px;
font-family: Verdana, Arial, Helvetica, sans-serif;
font-weight: bold;
background-color: #b47023;
text-align: center;
padding: 3px;
*padding-left: 0px; /*trying to cut down on width in IE browsers*/
*padding-right: 0px;
border: solid 2px black;
cursor: pointer;
}
</style>
</head>
<body>
<form>
<input class="button" type="submit" name="Add to Cart" value="ADD TO CART" />
</form>
</body>
</html>
Does anyone know a solution to this?
|