Last active
July 29, 2022 00:49
-
-
Save asilbalaban/7985790 to your computer and use it in GitHub Desktop.
Quick form styling with CSS
This file contains hidden or 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
input, textarea { | |
padding: 9px; | |
border: solid 1px #E5E5E5; | |
outline: 0; | |
font: normal 13px/100% Verdana, Tahoma, sans-serif; | |
width: 100%; | |
background: #FFFFFF; | |
-moz-box-sizing: border-box; -webkit-box-sizing: border-box; box-sizing: border-box; | |
} | |
textarea { | |
width: 100%; | |
height: 150px; | |
line-height: 150%; | |
} | |
input:hover, textarea:hover, | |
input:focus, textarea:focus { | |
border-color: #C9C9C9; | |
} | |
label { | |
margin-left: 0px; | |
color: #999999; | |
} | |
button, input[type="submit"] { | |
width: auto; | |
padding: 9px 15px; | |
background: #cccccc; | |
border: 0; | |
font-size: 14px; | |
color: #FFFFFF; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
thank you!