Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Line textbox HTML

Tags:

html

css

I want to create a textbox like this:

enter image description here

It is just a line where you can input text. Is it possible to do this with css? or on bootstrap?

like image 587
user2785929 Avatar asked Nov 15 '13 03:11

user2785929


People also ask

What HTML form can be used for multiline text input?

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.

What is the HTML code for text box?

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.


2 Answers

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;
}
like image 73
Vainglory07 Avatar answered Oct 09 '22 23:10

Vainglory07


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

like image 20
this_guy Avatar answered Oct 09 '22 22:10

this_guy