1

I need to set an input type checkbox right side padding to 10px and border-right:1px solid #000. I am trying this but the checkbox not taking the values. Does anybody know why it isn't working?

I am using the following code:

input[type="checkbox"] {
  border-right:1px solid #fff;
  margin-right:10px;
}

The border doesn't take.

2

2 Answers 2

4

This is one of those elements what browsers tend not to let you style that much, and mostly people replace it with javascript.

Why dont you give pretty checkbox a try? :) http://www.no-margin-for-errors.com/projects/prettycheckboxes/

Edit:

Here is an example: http://jsfiddle.net/v4Dde/2/ this is how i made it once with out javascript, hope it helps you (sorry about the color just made them this way so you can see :) )

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

Comments

1

Have you try using outline instead of border ?

For example :

outline : 2px solid #000000;

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.