views:

501

answers:

3

i see that chrome puts a thicker border on :focus. but it kind of look off in my case where i use border-radius also. is there anyway to remove that?

image: chrome :focus border

A: 

Try outline in your CSS. I think it can go well

joanballester
Yes, outline:none as Pekka says or outline:0. Normally I have a css base file, I recommend it to you
joanballester
+4  A: 

You should be able to remove it using

outline: none

but keep in mind this is potentially bad for usability: It will be hard to tell whether an element is focused, which can suck when you walk through all a form's elements using the Tab key - you should reflect somehow when an element is focused.

Pekka
i did change the `background-color` and `color` properties/attributes (whatever u call it) on `:focus` so i guess its still ok
jiewmeng
Yep. Globally setting `outline: none` like some resets do is a mistake as it degrades keyboard accessibility, but it's fine to remove `outline` if you've got another cleart way of reflecting focusedness.
bobince
A: 

you could just set outline: none; and border to a different color on focus.

asawilliams