CodePen
codepen.io › gliesche › pen › ZQyPeV
Pure CSS checkmark
It's a common practice to apply CSS to a page that styles elements such that they are consistent across all browsers. We offer two of the most popular choices: normalize.css and a reset.
CodePen
codepen.io › michmy › pen › zNeXZR
CSS Checkmark
In CodePen, whatever you write in the HTML editor is what goes within the <body> tags in a basic HTML5 template. If you need things in the <head> of the document, put that code here. ... The resource you are linking to is using the 'http' protocol, which may not work when the browser is using https. ↑ Insert the most common viewport meta tag · CSS preprocessors help make authoring CSS easier.
Videos
CodePen
codepen.io › ukristen › pen › KpPNZV
CSS checkmarks
In CodePen, whatever you write in the HTML editor is what goes within the <body> tags in a basic HTML5 template. If you need things in the <head> of the document, put that code here. ... The resource you are linking to is using the 'http' protocol, which may not work when the browser is using https. ↑ Insert the most common viewport meta tag · CSS preprocessors help make authoring CSS easier.
CodePen
codepen.io › iGadget › pen › mJaPMY
CSS Check Mark
<section> <div class="container"> <h5>CSS Check Mark √</h5> <ul class="box"> <li> <h6>check with JS <span>toggle a class</span></h6> <span class="icon fa fa-file"></span> </li> <li> <h6>check without JS <span>checkbox + label</span></h6> <input type="checkbox" id="checker" /> <label for="checker" class="lbl fa fa-file"></label> </li> </div> </section> !
CodePen
codepen.io › haniotis › pen › KwvYLO
Checkmark (SVG + CSS)
In CodePen, whatever you write in the HTML editor is what goes within the <body> tags in a basic HTML5 template. If you need things in the <head> of the document, put that code here. ... The resource you are linking to is using the 'http' protocol, which may not work when the browser is using https. ↑ Insert the most common viewport meta tag · CSS preprocessors help make authoring CSS easier.
CodePen
codepen.io › tag › checkmark
Pens tagged 'checkmark' on CodePen
CodePen doesn't work very well without JavaScript · We're all for progressive enhancement, but CodePen is a bit unique in that it's all about writing and showing front end code, including JavaScript. It's required to use most of the features of CodePen · Need to know how to enable it?
CodePen
codepen.io › kolobo › pen › YQQwgR
Pure CSS animated check mark
<div id="animCheck"> <div class="precheck"></div> <div class="check"></div> </div> <!-- THIS IS THE END--> <!-- THIS IS THE END--> <!-- THIS IS THE END--> <!-- RERUN TOPBAR --> <div id="topbar"> <a id="btnRerun" href="#">RERUN</a> <div>leave me a visit at 🐵 <a href="https://www.kolobo.com">kolobo.com</a></div> </div> ... // @import "compass/css3"; $size: 200px; $mark-border-radius: $size/10; #animCheck { width: $size; height: $size; position: relative; margin: 0 auto; border: 1px solid #666; border-radius: 50%; .precheck{ &:before{ content: ''; position: absolute; top: 45%; left: 0; wi
CodePen
codepen.io › eadsimone › pen › XKbLjP
pure css checkmark icon
In CodePen, whatever you write in the HTML editor is what goes within the <body> tags in a basic HTML5 template. If you need things in the <head> of the document, put that code here. ... The resource you are linking to is using the 'http' protocol, which may not work when the browser is using https. ↑ Insert the most common viewport meta tag · CSS preprocessors help make authoring CSS easier.
CodePen
codepen.io › andy-set-studio › pen › ExdZvar
Verified Check Mark
In CodePen, whatever you write in the HTML editor is what goes within the <body> tags in a basic HTML5 template. If you need things in the <head> of the document, put that code here. ... The resource you are linking to is using the 'http' protocol, which may not work when the browser is using https. ↑ Insert the most common viewport meta tag · CSS ...
CodePen
codepen.io › elevaunt › pen › VvKdVa
Animated Check Mark & Cross
In CodePen, whatever you write in the HTML editor is what goes within the <body> tags in a basic HTML5 template. If you need things in the <head> of the document, put that code here. ... The resource you are linking to is using the 'http' protocol, which may not work when the browser is using https. ↑ Insert the most common viewport meta tag · CSS ...
CodePen
codepen.io › avstorm › pen › vYYBxRM
HTML CSS JS
In CodePen, whatever you write in the HTML editor is what goes within the <body> tags in a basic HTML5 template. If you need things in the <head> of the document, put that code here. ... The resource you are linking to is using the 'http' protocol, which may not work when the browser is using https. ↑ Insert the most common viewport meta tag · CSS preprocessors help make authoring CSS easier.
CodePen
codepen.io › led8 › pen › yLLddyb
Checkmark Animated
In CodePen, whatever you write in the HTML editor is what goes within the <body> tags in a basic HTML5 template. If you need things in the <head> of the document, put that code here. ... The resource you are linking to is using the 'http' protocol, which may not work when the browser is using https. ↑ Insert the most common viewport meta tag · CSS preprocessors help make authoring CSS easier.
CodePen
codepen.io › Cactical-Jinx › pen › WJEZqq
CSS Check list
<body> <section class="task-list current"> <ul> <li> <!-- First Check --> <div class="checkbox"> <div class="check"> <input type="checkbox" name="task_00"> <div class="check-container"> <div class="check-off"></div> <div class="check-on"><i></i></div> </div> </div> <div class="label"> <mark>Document Name</mark> <br> <time datetime="05-12-2016">12 March 2016 - h 9:30 am</time> </div> </div> </li> <li> <div class="checkbox"> <div class="check"> <input type="checkbox" name="task_00"> <div class="check-container"> <div class="check-off"></div> <div class="check-on"><i></i></div> </div> </div> <div
Top answer 1 of 16
110
Here is another CSS solution. It takes fewer lines of code.
ul li:before {
content: '\2713';
display: inline-block;
color: red;
padding: 0 6px 0 0;
}
ul li {
list-style-type: none;
font-size: 1em;
}
<ul>
<li>test1</li>
<li>test</li>
</ul>
2 of 16
109
You can draw two rectangles and place them next to each other. And then rotate by 45 degrees. Modify the width/height/top/left parameters for any variation.
DEMO 1
.checkmark {
display: inline-block;
width: 22px;
height: 22px;
-ms-transform: rotate(45deg); /* IE 9 */
-webkit-transform: rotate(45deg); /* Chrome, Safari, Opera */
transform: rotate(45deg);
}
.checkmark_stem {
position: absolute;
width: 3px;
height: 9px;
background-color: #ccc;
left: 11px;
top: 6px;
}
.checkmark_kick {
position: absolute;
width: 3px;
height: 3px;
background-color: #ccc;
left: 8px;
top: 12px;
}
<span class="checkmark">
<div class="checkmark_stem"></div>
<div class="checkmark_kick"></div>
</span>
DEMO 2 (With circle)
.checkmark {
display: inline-block;
width: 22px;
height: 22px;
-ms-transform: rotate(45deg); /* IE 9 */
-webkit-transform: rotate(45deg); /* Chrome, Safari, Opera */
transform: rotate(45deg);
}
.checkmark_circle {
position: absolute;
width: 22px;
height: 22px;
background-color: green;
border-radius: 11px;
left: 0;
top: 0;
}
.checkmark_stem {
position: absolute;
width: 3px;
height: 9px;
background-color: #fff;
left: 11px;
top: 6px;
}
.checkmark_kick {
position: absolute;
width: 3px;
height: 3px;
background-color: #fff;
left: 8px;
top: 12px;
}
<span class="checkmark">
<div class="checkmark_circle"></div>
<div class="checkmark_stem"></div>
<div class="checkmark_kick"></div>
</span>