Remove blinking cursor
Description
I had the problem, that I have an input with a number and two triggers to increase and decrease the number. Now you click on the input, then you get the blinking cursor.
Solution
HTML
<input type="number" name="" value="10" class="input--numberfield">
SCSS
.input--numberfield {
border: none;
color: transparent;
text-shadow: 0 0 0 gray;
text-align: center;
&:focus {
outline: none;
}
}
Use text-shadow to give your number the color ;)
Demo
Written by Tim Hartmann
Related protips
2 Responses
Dude, not working in IE 9
over 1 year ago
·
Ya, Not working in IE Browsers
over 1 year ago
·
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Css
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#