Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialLe Var Range
Front End Web Development Techdegree Student 18,011 PointsI would like to style the checkbox on my page with my own check mark and background color. using the :checked pseudo
input[type^="checkbox"] {
-webkit-appearance: none;
border: 1px solid rgb(141, 214, 205);
background-color: rgb(255, 217, 179);
border-radius: 5px;
width: 15px;
height: 15px;
}
input[type^="checkbox"]:hover {
-webkit-appearance: none;
border: 1px solid rgb(141, 214, 205);
background-color: rgb(141, 214, 205);
border-radius: 5px;
width: 15px;
height: 15px;
}
input[type^="checkbox"]:checked {
background-color: rgb(37,22,82);
border: 1px solid rgb(37,22,82);
border-radius: 5px;
width: 15px;
height: 15px;
}
```css
My code now.
2 Answers
Kristopher Van Sant
Courses Plus Student 18,830 PointsHey there! I'm sorry it's taken several days for anyone to give you a response! Did you manage to figure out how to customize your checkboxes? I found a few resources that should be helpful in styling the checkmark and checkbox. Hope they help. Happy coding!
http://codepen.io/CreativeJuiz/pen/BiHzp
http://blog.karenmenezes.com/2014/nov/1/another-pure-css-checkbox-article/
http://blogs.adobe.com/dreamweaver/2015/08/css-vs-svg-styling-checkboxes-and-radio-buttons.html
http://stackoverflow.com/questions/658044/tick-symbol-in-html-xhtml
http://stackoverflow.com/questions/21968531/how-to-draw-a-checkmark-tick-using-css
http://stackoverflow.com/questions/4148499/how-to-style-checkbox-using-css?lq=1
Le Var Range
Front End Web Development Techdegree Student 18,011 Pointsyes I figured it out .. thanks anyway ... happy codings!
Kristopher Van Sant
Courses Plus Student 18,830 PointsAwesome! Glad to hear you were able to work it out :)