1

Here is a JSFiddle:

http://jsfiddle.net/1kjgkkkc/1/

HTML:

<form>
  First name: <input type="text" name="fname">
</form>

CSS:

input {
border-radius: 10px;

}

input:focus {
background: #CEECF5;

}

When the input box is selected a rectangular outline appears. Any thoughts on how to remove this rectangular outline all together or at least round it to the same radius as the input box?

1 Answer 1

3

simply add

outline:0;

to

input:focus {
background: #CEECF5;

outline:0; /* << this */
}

Working Fiddle

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

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.