8

can i change border color of checkbox by use css or jquery. i want change only border color of check box.

2
  • 5
    Are images an option? Otherwise you can't do this in a cross-browser consistent way. Commented Jun 15, 2010 at 12:18
  • most thanks for patrick. your tips was most useful. Commented Jun 16, 2010 at 14:13

2 Answers 2

4

if you want to do this with pure css, you won't get an result that works in all browsers. if you use jqueryUI there are some implementations of checkboxes like this or this. otherwise you'll have to do something similar by yourself using images.

edit:
please note: as of today (march 2015) this post is about 5 years old - back then, the IE6 still had a market share of about 10% and even the newest IE (Version 8 at that time) was crappy as hell. This answer is technically outdated nowadays.

Sign up to request clarification or add additional context in comments.

Comments

2

Checkboxes are notorious for behaving differently to styles for each browser that renders them. As Nick Craver commented, images are the only reliable way to style checkboxes safely.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.