Hướng dẫn check mark icon css
How to draw the tick symbol using CSS? The symbols I find using Unicode isn't aesthetically-pleasing. EDIT Icon fonts are a great suggestion. I was looking for something like this.
jbutler483 23.3k9 gold badges87 silver badges141 bronze badges asked Feb 23, 2014 at 12:59
5 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 DEMO 2 (With circle) HTML
CSS
answered Feb 23, 2014 at 12:59
dayulolidayuloli 15.3k15 gold badges65 silver badges115 bronze badges 5 Here is another CSS solution. its take less line of code.
Here is the Demo link http://jsbin.com/keliguqi/1/
Pikamander2 6,2933 gold badges42 silver badges63 bronze badges answered Feb 23, 2014 at 13:12
Kheema PandeyKheema Pandey 9,7894 gold badges24 silver badges26 bronze badges 2 Do some transforms with the letter L
answered Mar 18, 2015 at 12:15
HenryHenry 9811 gold badge13 silver badges14 bronze badges 2 only css, quite simple I find it:
habib 1,05513 silver badges27 bronze badges answered Feb 20, 2020 at 14:29
PetronellaPetronella 2,1101 gold badge13 silver badges23 bronze badges 0 You can now include web fonts and even shrink down the file size with just the glyphs you need. https://github.com/fontello/fontello http://fontello.com/
answered Feb 23, 2014 at 14:18
JohanVdRJohanVdR 2,8281 gold badge12 silver badges15 bronze badges An additional solution, for when you only have one of the :before / :after psuedo-elements available, is described here: :after-Checkbox using borders It basically uses the Example
answered Feb 28, 2015 at 2:06
PhilipPhilip 2,7862 gold badges19 silver badges35 bronze badges 5 I've used something similar to BM2ilabs's answer in the past to style the tick in checkboxes. This technique uses only a single pseudo element so it preserves the semantic HTML and there is no reason for additional HTML elements. Simple, semantic, without any dependencies or additional HTML.
answered Jan 6, 2020 at 13:14
matthewdmatthewd 2934 silver badges9 bronze badges 1 Try this // html example
// css example
answered May 7, 2019 at 6:26
silvedosilvedo 1111 silver badge3 bronze badges 1 i like this way because you don't need to create two components just one.
Animation from Scott Galloway Pen answered Mar 14, 2018 at 11:43
BM2ilabsBM2ilabs 4226 silver badges9 bronze badges I suggest to use a tick symbol not draw it. Or use webfonts which are free for example: fontello[dot]com You can than replace the tick symbol with a web font glyph. Lists
See here: http://jsfiddle.net/hpmW7/3/ Checkboxes You even have web fonts with tick symbol glyphs and CSS 3 animations. For IE8 you would need to apply a polyfill since it does not understand :checked.
See the JS fiddle: http://jsfiddle.net/VzvFE/37 answered Feb 23, 2014 at 13:55
JohanVdRJohanVdR 2,8281 gold badge12 silver badges15 bronze badges
answered Jul 9, 2014 at 12:54
After some changing to above Henry's answer, I got a tick with in a circle, I came here looking for that, so adding my code here.
answered Feb 19, 2021 at 13:26
GameChangerGameChanger 3003 silver badges15 bronze badges You might want to try fontawesome.io It has great collection of icons. For you answered Apr 29, 2017 at 13:37
Also, using the awesome font, you can use the following tag. Simple and beautiful With the possibility of changing the size and color and other features in CSS See result here answered Aug 22, 2020 at 8:15
This is my variant for making 'checked' buttons HTML
JavaScript
CSS
answered Mar 18, 2021 at 0:38
1000Gbps1000Gbps 1,3511 gold badge29 silver badges33 bronze badges We can use CSS pseudo-element to make the checkmark/tick sign. Suppose, we have a span tag in our HTML and we want to place out checkmark before the span. We can simply do this:
Now, we can add the CSS like this:
answered Apr 11 at 12:18
If you want a tick, you probably also want a cross, with background colours.
answered Jun 28 at 12:03
lonixlonix 9,38312 gold badges59 silver badges122 bronze badges This is simple css for Sign Mark. ul li:after{opacity: 1;content: '\2713';right: 20px;position: absolute;font-size: 20px;font-weight: bold;} answered Sep 22, 2019 at 5:13
1 |