The question is unclear, but as far as I understood, you are trying to give some styles to your elements, and it seems that your style doesn't apply on your checkbox
.
Anyways, your style is working fine, I've just added a background
property to show you that your styles have been applied without any problems.
.switch {
position: relative;
display: inline-block;
width: 60px;
height: 34px;
background: #999
}
<label class="switch">
<input type="checkbox">
<span class="slider round">foo</span>
</label>
If you are trying to give custom styles to your checkbox, read the answers to this question
Welcome to the StackOverflow community, and the more specific your question can be, you will get better, to the point answers... Good Luck!