I want to create a textbox like this:
It is just a line where you can input text. Is it possible to do this with css? or on bootstrap?
The <textarea> tag defines a multi-line text input control. The <textarea> element is often used in a form, to collect user inputs like comments or reviews.
The HTML textbox is an input control that allows the user to enter the text input on the web page. The <input type = “text”> is used to create a textbox.
Ya, it's possible DEMO HERE
HTML
<input type="text" class="text-line" />
CSS
body {
background: #333333;
}
.text-line {
background-color: transparent;
color: #eeeeee;
outline: none;
outline-style: none;
border-top: none;
border-left: none;
border-right: none;
border-bottom: solid #eeeeee 1px;
padding: 3px 10px;
}
Yes it is possible
HTML
<input type="text"/>
CSS
input[type="text"] {
border:none; /* Get rid of the browser's styling */
border-bottom:1px solid black; /* Add your own border */
}
Fiddle
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With