html { font-size: 16px; font-family: sans-serif, Arial, Helvetica; background-color: #d4d4d4; } .topbar { padding: 1em; background-color: #1f1f1f; color: white; font-size: x-large; text-align: center; } .control { padding: 1em; } .ueberschrift{ color: #ffffff; font-size: 50px; width: 40%; background-color: #5f5f5f; } .testregler{ -webkit-appearance: none; height: 20px; width: 98%; border-radius: 20px; outline: black; background-color: rgb(176, 188, 228); } .testregler::-webkit-slider-thumb{ -webkit-appearance: none; appearance: none; width: 5%; height: 20px; border-radius: 10px; background-color: rgb(107, 122, 192); cursor:pointer; } input[type=range]::-webkit-slider-thumb{ -webkit-appearance: none; border:none; height: 100px; width: 100px; background:goldenrod; margin-top: -15px; border-radius: o!important; } .kopfzeile{ color: #1f1f1f; font-size: 50px; width: 100%; background-color: #8d8a8a; } p, li { font-size: 16px; line-height: 2; letter-spacing: 1px; } body { margin: 0 auto; border: none; border-radius: 3; } /* The switch - the box around the slider */ .switch { position: relative; display: inline-block; width: 60px; height: 34px; } /* Hide default HTML checkbox */ .switch input { opacity: 0; width: 0; height: 0; } /* The slider */ .slider { width: 100%; } /*.slider:before { position: absolute; content: ""; height: 26px; width: 26px; left: 4px; bottom: 4px; background-color: white; -webkit-transition: .4s; transition: .4s; }*/ input:checked + .slider { background-color: #04AA6D; } input:focus + .slider { box-shadow: 0 0 1px #04AA6D; } input:checked + .slider:before { -webkit-transform: translateX(26px); -ms-transform: translateX(26px); transform: translateX(26px); } /* Rounded sliders */ .slider.round { border-radius: 34px; } .slider.round:before { border-radius: 50%; } /* The slider itself */ .rangeslider { -webkit-appearance: none; /* Override default CSS styles */ appearance: none; width: 50%; /* Full-width */ height: 34px; /* Specified height */ border-radius: 34px; /* range round corners */ background: #d3d3d3; /* Grey background */ outline: none; /* Remove outline */ opacity: 0.7; /* Set transparency (for mouse-over effects on hover) */ -webkit-transition: .2s; /* 0.2 seconds transition on hover */ transition: opacity .2s; } /* Mouse-over effects */ .rangeslider:hover { opacity: 1; /* Fully shown on mouse-over */ } /* The slider handle (use -webkit- (Chrome, Opera, Safari, Edge) and -moz- (Firefox) to override default look) */ .rangeslider::-webkit-slider-thumb { -webkit-appearance: none; /* Override default look */ appearance: none; width: 26px; /* Set a specific slider handle width */ height: 26px; /* Slider handle height */ border-radius: 50%; /* Round Element */ background: #04AA6D; /* Green background */ cursor: pointer; /* Cursor on hover */ } .rangeslider::-moz-range-thumb { width: 26px; /* Set a specific slider handle width */ height: 26px; /* Slider handle height */ background: #04AA6D; /* Green background */ cursor: pointer; /* Cursor on hover */ }