-1

I have an input and a label that look like this currently. What I would like to do is make the line from under the label disappear. I would just like to know what css I would have to add to the existing design to make that work.

enter image description here

3 Answers3

0

You can remove borders on input elements with border: none or specific borders with border-top: none, et cetera.

input {
  border-top: none;
}
<input type="text" value="test tester">
luek baja
  • 1,475
  • 8
  • 20
0
input {
    border:none;
    outline:none;
}
input:focus {
    outline:none
}
gehbiszumeis
  • 3,525
  • 4
  • 24
  • 41
Gunal Bondre
  • 94
  • 2
  • 12
0

You can set backgreound-color as input/background background-color for the label. With this solution, only the border part behind the label will disappear.

zerob4wl
  • 69
  • 7