Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Remove Underline Border Materialize Input Text

I try to make the border bottom of the text box (input text) disappear.

It's working with border-bottom: none but when I write something the border appear again. I want to make the green line disappear (the image show the page when I'm writing in the input).

enter image description here

Any idea?

like image 337
Mr Lord Avatar asked Jun 06 '17 10:06

Mr Lord


People also ask

How do I remove the border highlight on an input text element?

Answer: Use CSS outline property In Google Chrome browser form controls like <input> , <textarea> and <select> highlighted with blue outline around them on focus. This is the default behavior of chrome, however if you don't like it you can easily remove this by setting their outline property to none .

How do I get rid of the black border on my input field focus?

Use the :focus pseudo-class with the "no-outline" class to style the form fields that are focused by the user. To have clear fields in your forms, set the outline property to its "none" value, which is used to display no outline.

How can I remove underline from textarea?

Add the same text-decoration: none !


1 Answers

In materialize.css

textarea:focus {
  border-bottom: 1px solid #03a9f4;
  -webkit-box-shadow: 0 1px 0 0 #03a9f4;
  -moz-box-shadow: 0 1px 0 0 #03a9f4;
  box-shadow: 0 1px 0 0 #03a9f4;
}

You can replace the color code with whatever you want to change the underline.

textarea:focus {
  border-bottom: 1px solid orange;
  -webkit-box-shadow: 0 1px 0 0 orange;
  -moz-box-shadow: 0 1px 0 0 orange;
  box-shadow: 0 1px 0 0 orange;
}

or remove it :

textarea:focus {
  border-bottom: none!important;
  box-shadow: none!important;
}

This is code :

Code

This is Result :

Result

like image 186
Sangwin Gawande Avatar answered Oct 06 '22 18:10

Sangwin Gawande