Created
June 1, 2012 14:10
-
-
Save SBoudrias/2852420 to your computer and use it in GitHub Desktop.
Untitled
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.bloc { | |
padding: 25px; | |
border: 1px solid #ccc; | |
vertical-align: middle; | |
} | |
.button { | |
display: inline-block; | |
background-color: #ed2345; | |
border: none; | |
padding: 25px; | |
border-radius: 33px; | |
color: #fff; | |
text-decoration: none; | |
font-family: arial, sans-serif; | |
font-size: 16px; | |
/** | |
* Propriété posant problème lorsque utilisé sur un input de type submit. | |
* Applique line-height -> Chrome (19), Internet Explorer (9), Safari (5.1 windows), Opera (11) | |
* N'applique pas line-height -> Firefox (9, 12), | |
*/ | |
line-height: 16px; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<h1>La propriété line-height sur des éléments de formulaires</h1> | |
<table> | |
<tr> | |
<th> | |
<a> | |
</th> | |
<th> | |
<input type="submit"> | |
</th> | |
<th> | |
<button> | |
</th> | |
</tr> | |
<tr> | |
<td class="bloc"> | |
<a href="#" class="button">Soumettre</a> | |
</td> | |
<td class="bloc"> | |
<input class="button" type="submit" value="Soumettre" /> | |
</td> | |
<td class="bloc"> | |
<button class="button">Soumettre</button> | |
</td> | |
</tr> | |
</table> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"view":"split","fontsize":"100","seethrough":"","prefixfree":"1","page":"css"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment