user630209
user630209

Reputation: 1191

Why is there is some padding before the first line in my TextArea?

There is some padding before the first line in my <textarea>.

I set style="padding:0;", but the "padding" is still there. Why is this?

<p><textarea id="quest" class="input" rows="4" cols="65" </textarea></p>

css file:

.addBlock {
    background-color:#E9F8BE;
    border:2px solid #D6E684;
    float:left;
    dth:94%;
    margin-left:22px;
    padding-bottom:15px;
    margin-top:10px;
    margin-bottom:10px;
}
.addQuestionBlock p {
    padding-top:4px;
    padding-left:20px;
    width:650px;
}
.addBlock p.selectQnLabel {
    padding-top:16px;
    font-size:15px;
    font-weight:bold;
    color:#333;
    font-family:Georgia, Times New Roman, Times, serif;
}
.addBlock p .input {
    background-color:#F9F9F9;
    border:1px;
    border-style:solid;
    border-color:#888 #BBB #BBB #888;
    color:#333;
    padding-left:0px;
}

Upvotes: 0

Views: 1035

Answers (1)

David Morrow
David Morrow

Reputation: 9354

you didnt close your textarea

<p><textarea id="quest" class="input" rows="4" cols="65" </textarea></p>

should be

<p><textarea id="quest" class="input" rows="4" cols="65"></textarea></p>

working example here... http://cssizer.com/F9356A7D

Upvotes: 1

Related Questions