How can I remove the border around an <input type="text">
and make its background transparent?
Asked
Active
Viewed 9.0k times
4 Answers
22
border: none transparent;
outline: none;
This will not only remove the border around the input field but also the orange highlight when the input is in focus.

Sachin
- 3,350
- 2
- 17
- 29
-
1+1 outline:none makes the border disappear even when the input is focused. Otherwise, border:none is not enough. – Vlad Mar 22 '18 at 05:30
1
Better late than never:
input {border-style:none;}

user1032531
- 24,767
- 68
- 217
- 387
-
Better late than never, yes, but this just duplicates two existing answers (`border: none;` is shorthand for `border-style: none;`). – Ry- Sep 22 '13 at 14:48
-
@minitech Isn't border shorthand for border-width, border-style, and border-color? – user1032531 Sep 22 '13 at 15:02
-