Created
January 31, 2012 21:48
-
-
Save rlemon/1713130 to your computer and use it in GitHub Desktop.
Key to centered forms..
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
/* is this friendly? I don't think so... merge after reviewing */ | |
.center-form { | |
width: 100%; | |
} | |
.center-input, .center-options, .center-submit, h1, h2, h3 { | |
width: 400px; | |
padding: 0px 4px 6px 4px; | |
margin: 0 auto; | |
text-align: center; | |
position: relative; | |
} | |
.center-form input[type=submit] { | |
padding: 6px 18px; | |
} | |
.center-form input[type=text], .center-form input[type=password] { | |
width: 225px; | |
color: #999; | |
} | |
.center-form input[type=text] { | |
padding: 6px 2px; | |
font-size: 18px; | |
} | |
.center-form input[type=password] { | |
padding: 2px; | |
letter-spacing: 4px; | |
font-size: 26px; | |
} | |
.center-form input[type=text]:focus, .center-form input[type=password]:focus { | |
color: #000; | |
} | |
.center-options.ui-padded-top { | |
padding-top: 26px; | |
} | |
.center-input label { | |
position: absolute; | |
top: 8px; | |
left: -125px; | |
width: 200px; | |
color: #666; | |
text-align: right; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment