Witam,
Mam mały problem z uzyskaniem zamierzonego efektu.
Chciałem przerobić przycisk typu submit tak żeby wyglądał jak inny element a konkretnie <a herf"">
O to co mam.
Html
<form class="center_form" action="" method="post"> <input type="text" name="login" required>
<input type="password" name="password" required>
<input type="submit" name="sent" value="Zaloguj się"/> <a href=forgotpassword.php>Zapomniałeś hasła?
</a>
i css do niego..
.center_form {
width: 400px;
height: 200px;
padding-top: 40px;
padding-left: 40px;
margin: 0 auto;
margin-top: 40px;
border: 1px solid #000000;
}
.center_form label {
width: 100px;
float: left;
text-align: right;
margin-right: 5px;
display: block
}
.center_form input[type="submit"] {
display: inline-block;
text-decoration: none;
font-family: Arial, Helvetica, sans-serif;
font-size: 18px;
background: #333333;
color: white;
border: 1px solid #000000;
padding: 5px;
-moz-border-radius: 2px;
border-radius: 2px;
cursor: pointer;
}
.center_form input[type="submit"]:hover{
background: #FF9900;
color: black;
}
.center_form a{
display: inline-block;
text-decoration: none;
font-family: Arial, Helvetica, sans-serif;
font-size: 18px;
background: #333333;
color: white;
border: 1px solid #000000;
padding: 5px;
-moz-border-radius: 2px;
border-radius: 2px;
cursor: pointer;
}
.center_form a:hover {
background: #FF9900;
color: black;
}
I problem polega na tym że w przeglądarce firefox efekt końcowy wygląda tek że submit jest wyższy o 1px od a href.
http://jsfiddle.net/MZf6D/3/ - tak to wygląda.
Strasznie mnie to drażni i nie mogę sobie z tym poradzić.
Proszę o pomoc lub chociaż jakieś wskazówki gdzie może być problem