Skip to content

Instantly share code, notes, and snippets.

@oksushi
Created March 17, 2013 08:19
Show Gist options
  • Save oksushi/5180640 to your computer and use it in GitHub Desktop.
Save oksushi/5180640 to your computer and use it in GitHub Desktop.
Making an ugly range slider (webkit only)
/**
* Making an ugly range slider (webkit only)
*/
input[type="range"] {
background: darkgrey;
height: 30px;
display: block;
border-radius: 1em;
width: 100%;
box-sizing: border-box;
}
input[type="range"]::-webkit-slider-thumb {
background: lightgrey;
width: 40px;
height: 40px;
border-radius: 50%;
}
input[type="range"],
input[type="range"]::-webkit-slider-thumb {
-webkit-appearance: none;
box-shadow: 0 0 5px rgba(0,0,0,.5);
}
<input type="range">
// alert('Hello world!');
{"view":"split","fontsize":"100","seethrough":"","prefixfree":"1","page":"all"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment