-1

When I click inside of an input box, I see the following "shadow":

INPUT

Can this be disabled? If so, how?

EDIT:

GIF

And this is my code

<div class="col-xs-12"><input class="form-control" id="Password" name="Password" type="text" placeholder="Password" /></div>
kaskull
  • 35
  • 1
  • 5
  • 1
    you can add "outline:none" for the input tag – bubesh Jul 07 '16 at 16:14
  • Questions seeking code help must include the shortest code necessary to reproduce it **in the question itself** preferably in a [**Stack Snippet**](https://blog.stackoverflow.com/2014/09/introducing-runnable-javascript-css-and-html-code-snippets/). See [**How to create a Minimal, Complete, and Verifiable example**](http://stackoverflow.com/help/mcve) – Paulie_D Jul 07 '16 at 16:14
  • 3
    Possible duplicate of [How to remove the border highlight on an input text element](http://stackoverflow.com/questions/1457849/how-to-remove-the-border-highlight-on-an-input-text-element) – Angel Politis Jul 07 '16 at 16:33

5 Answers5

1

I think you want to set 'outline: none' on the input css.

The question was answered there: How to remove the border highlight on an input text element

Community
  • 1
  • 1
he8us
  • 69
  • 7
1

Set border to none or 0. Then for mozilla remove ghost padding.

.myInput {
    border: 0;
}
.myInput::-moz-focus-inner {
    border: 0;
    padding: 0;
}
mhatch
  • 4,441
  • 6
  • 36
  • 62
1

From the styling, it looks like you're using iOS. Check out this thread Remove iOs input shadow. It's a couple years old, but it might help.

Community
  • 1
  • 1
  • 1
    You should provide the general idea of the thread you mention in case the site/thread goes down, especially if it's old. If it does go down, this answer won't be useful. – PhilDulac Jul 07 '16 at 16:29
  • 1
    Thanks for the advice. Will do so in the future. – John Beckius Jul 07 '16 at 17:21
1

I just put

border:none;

And worked, that blue border desapeared

kaskull
  • 35
  • 1
  • 5
  • If you found the solution, you should consider marking a post as the answer if it helped you. (i.e. the green checkmark) – mhatch Jul 13 '16 at 19:44
0

Em maybe you can try to using outline:none,it will kill the the border when user click the input box

Felix Fong
  • 969
  • 1
  • 8
  • 21