formatting checkbox css
CSS
/* Customize the label (the container) */
.container {
display: block;
position: relative;
padding-left: 35px;
margin-bottom:
12px;
cursor: pointer;
font-size: 22px;
-webkit-user-select:
none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
/* Hide the
browser's default checkbox */
.container input {
position: absolute;
opacity: 0;
cursor: pointer;
height: 0;
width:
0;
}
/* Create a custom checkbox */
.checkmark {
position:
absolute;
top: 0;
left: 0;
height: 25px;
width: 25px;
background-color: #eee;
}
/* On mouse-over, add a grey background color */
.container:hover
input ~ .checkmark {
background-color: #ccc;
}
/* When the
checkbox is checked, add a blue background */
.container input:checked ~
.checkmark {
background-color: #2196F3;
}
/* Create the
checkmark/indicator (hidden when not checked) */
.checkmark:after {
content: "";
position: absolute;
display: none;
}
/* Show the
checkmark when checked */
.container input:checked ~ .checkmark:after {
display: block;
}
/* Style the checkmark/indicator */
.container
.checkmark:after {
left: 9px;
top: 5px;
width:
5px;
height: 10px;
border: solid white;
border-width: 0 3px 3px 0;
-webkit-transform: rotate(45deg);
-ms-transform: rotate(45deg);
transform: rotate(45deg);
}
Also in CSS:
- Title
- kerning css
- Category
- CSS
- Title
- css pause animation
- Category
- CSS
- Title
- link css with html
- Category
- CSS
- Title
- how to create a shape in css
- Category
- CSS
- Title
- github-pages main.css cancel
- Category
- CSS
- Title
- rotate svg with css
- Category
- CSS
- Title
- margin in css
- Category
- CSS
- Title
- html center video
- Category
- CSS
- Title
- css first of type
- Category
- CSS
- Title
- css animated background
- Category
- CSS
- Title
- css responsive
- Category
- CSS
- Title
- forms html css
- Category
- CSS
- Title
- how to link locally installed fonts to css
- Category
- CSS
- Title
- css disabled div
- Category
- CSS
- Title
- center with css
- Category
- CSS
- Title
- sketchup make
- Category
- CSS
- Title
- three dots in css
- Category
- CSS
- Title
- how to give a div placeholder text
- Category
- CSS
- Title
- aligner et centrer element css html
- Category
- CSS
- Title
- social media icon bar html
- Category
- CSS
- Title
- scss to css
- Category
- CSS
- Title
- repeat autofill css grid minmax
- Category
- CSS
- Title
- scss @mixin base
- Category
- CSS
- Title
- google fonts css
- Category
- CSS
- Title
- css before after
- Category
- CSS
- Title
- remove background when autofill input css
- Category
- CSS
- Title
- css animation generator
- Category
- CSS
- Title
- ggo
- Category
- CSS
- Title
- css overflow-y scroll
- Category
- CSS
- Title
- on click css
- Category
- CSS
- Title
- how to se linear gradient in css
- Category
- CSS
- Title
- update npm
- Category
- CSS
- Title
- how to bold in css
- Category
- CSS
- Title
- textarea only one line
- Category
- CSS
- Title
- css position div
- Category
- CSS
- Title
- blur effect css
- Category
- CSS
- Title
- css blur background
- Category
- CSS
- Title
- remove blue border on a input
- Category
- CSS
- Title
- css last child with class
- Category
- CSS
- Title
- css cursor pointer
- Category
- CSS
- Title
- how to change the page background in css
- Category
- CSS
- Title
- add background image css
- Category
- CSS
- Title
- css selectors cheat sheet
- Category
- CSS
- Title
- text overflow ellipsis css
- Category
- CSS
- Title
- css variables
- Category
- CSS
- Title
- update data in firestore
- Category
- CSS
- Title
- how to use child selectors in css
- Category
- CSS
- Title
- bootstrap 4 scss angular 8
- Category
- CSS
- Title
- because its MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checking is enabled.
- Category
- CSS
- Title
- how to style input fields in css
- Category
- CSS
- Title
- spring boot
- Category
- CSS
- Title
- carousel inner item populate with for loop puting active class on all carousel item
- Category
- CSS
- Title
- multiple transition in css
- Category
- CSS
- Title
- css id selector
- Category
- CSS
- Title
- ramtejajakka
- Category
- CSS
- Title
- React include css
- Category
- CSS
- Title
- Node.js: printing to console without a trailing newline
- Category
- CSS
- Title
- Use Recursion to Create a Range of Numbers
- Category
- CSS
- Title
- difference between :after and ::after
- Category
- CSS
- Title
- hide in css
- Category
- CSS
- Title
- font. to be thinner css
- Category
- CSS
- Title
- How to find the key of the largest value hash?
- Category
- CSS
- Title
- css horizontal linear gradient
- Category
- CSS
- Title
- styles only for IE
- Category
- CSS
- Title
- typescript not supporting scss
- Category
- CSS
- Title
- html css how to arrange images of different sizes
- Category
- CSS
- Title
- using divs instead of table
- Category
- CSS
- Title
- center ul
- Category
- CSS
- Title
- remove list bullet css
- Category
- CSS
- Title
- kotlin exit app
- Category
- CSS
- Title
- table border css
- Category
- CSS
- Title
- css light grey
- Category
- CSS
- Title
- css text align right
- Category
- CSS
- Title
- make buttons round css
- Category
- CSS
- Title
- css perspective
- Category
- CSS
- Title
- how to specify amout of letters in inputfield in css
- Category
- CSS
- Title
- css note
- Category
- CSS
- Title
- enter in css
- Category
- CSS
- Title
- jquery css importnat
- Category
- CSS
- Title
- gradients w3
- Category
- CSS
- Title
- box shadow css
- Category
- CSS
- Title
- how to link your css file to html
- Category
- CSS
- Title
- red asterix css
- Category
- CSS
- Title
- simple font-face mixin scss
- Category
- CSS
- Title
- remove double quotes from string kotlin
- Category
- CSS
- Title
- :root css
- Category
- CSS
- Title
- align items css
- Category
- CSS
- Title
- letter spacing css
- Category
- CSS
- Title
- span size css
- Category
- CSS
- Title
- css set variable
- Category
- CSS
- Title
- javascript modify css
- Category
- CSS
- Title
- css flex center
- Category
- CSS
- Title
- CKEDITOR PUSH TEXT IN FRONT OF CURSOR
- Category
- CSS
- Title
- forcing website to show in landscape mode only
- Category
- CSS
- Title
- header html css
- Category
- CSS
- Title
- make footer stick to bottom without overlap over other elements
- Category
- CSS
- Title
- display table css
- Category
- CSS
- Title
- css two attribute selector
- Category
- CSS
- Title
- responsive text css
- Category
- CSS
- Title
- css backdrop filter
- Category
- CSS