-1
#botoes {
width: 270px;
margin-left: 20px;
}
#botao {
float: right;
padding: 5px;
15px;
font: bold 12px sans-serif;
border-radius: 20px;
box-shadow: 0px 1px 0px white;
border: 1px solid #9eb9c3;
background: #edf6f9;
background: -webkit-linear-gradient(#edf6f9 0%, #cde5ee 100%);
background: -moz-linear-gradient(#edf6f9 0%, #cde5ee 100%);
background: -o-linear-gradient(#edf6f9 0%, #cde5ee 100%);
background: linear-gradient(#edf6f9 0%, #cde5ee 100%);
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#edf6f9', endColorstr='#cde5ee', GradientType=0);
color: #527988;
box-shadow: 0px 0px 10pc #c9c9c9
}
#botao:hover {
background: #cde5ee;
background: -moz-linear-gradient(top, #cde5ee 0%, #edf6f9 100%);
background: -webkit-linear-gradient(top, #cde5ee 0%, #edf6f9 100%);
background: linear-gradient(to bottom, #cde5ee 0%, #edf6f9 100%);
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#cde5ee', endColorstr='#edf6f9', GradientType=0);
cursor: pointer;
}
<div id=botoes>
<div id="botao">
<input type="submit" name="enviar" value="Enviar">
</div>
<div id="botao">
<input type="reset" name="limpar" value="Reset">
</div>
<div id="lembrar-senha">
<input type="checkbox" />Lembrar senha
</div>
Young man... just a little something for you to test there. Try putting a 50px padding on that div, or change the color of the gradient from red to blue. You will see that the gradient erdado by the input is buggered, because it is not the same height of the father. The ideal would even be to remove the wrapped div of the input and stylize the input, with the
inherit
the child gradient does not "marry" with the father’s– hugocsl
That’s the scenario AP put in his question?
– Renan Gomes
I just made a comment for you test there young, a test in what I said, as the color of his gradient is soft is difficult to notice, but if the gradient is more accentuated between the first and the second color you will see that it does not look cool. Do the test there quick use this gradient
linear-gradient(to bottom, red 0%, blue 100%)
you will see that inheriting the gradient does not align the colors. The padding suggested just to make it easier for you to see. But you can only test with another color. Nice was just a comment for you to test and evaluate.– hugocsl
I also said good. =)
– Renan Gomes
Cool that you took it easy, is why here are people who have ego in the heights and does not accept neither comment, or even to think 2x before coming out negative. I only gave the tip pq when I opened on my monitor even though the color was soft I saw that gave a break in the gradient, then I suggested you to do the test. If someone else applies the example with other colors it may result in an unwanted effect. Tmj
– hugocsl