xRobot
xRobot

Reputation: 26565

How to add OUTLINE on input tags?

In google chrome, when an input tag is selected then appear a yellow outline around it.

In other browser ( firefox, explorer, ecc ) not !!

How can I add outlines on input tags in other browser ( firefox, explorer ) like chrome ??

Upvotes: 0

Views: 485

Answers (2)

Davis Peixoto
Davis Peixoto

Reputation: 5743

You have some options to try.

outline, border, and pseudo-element :focus.

Upvotes: 0

Pekka
Pekka

Reputation: 449823

You could use outline with the limitation that it doesn't work in IE6/7:

outline: 3px orange solid;

the only alternative that works across all browsers is border but that will take away the element's native border, something you may not want.

JSFiddle

Upvotes: 2

Related Questions