Last active
March 15, 2016 09:09
-
-
Save RhinoLu/42a73cfb63409e58d56f to your computer and use it in GitHub Desktop.
placeholder style
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 { | |
position: absolute; | |
left: 10px; | |
top: 35px; | |
width: 280px; | |
height: 30px; | |
padding: 0; | |
margin: 0; | |
border: 0; | |
background-color: transparent; | |
text-align: center; | |
letter-spacing: 2px; | |
&:focus { | |
outline: none; | |
} | |
&::-webkit-input-placeholder { | |
color: #333333; | |
opacity:1; | |
} | |
&:-moz-placeholder { /* Firefox 18- */ | |
color: #333333; | |
opacity:1; | |
} | |
&::-moz-placeholder { /* Firefox 19+ */ | |
color: #333333; | |
opacity:1; | |
} | |
&:-ms-input-placeholder { | |
color: #333333; | |
opacity:1; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment