HTML Textarea - курсор начинается в центре текстовой области, а не сверху

У меня есть HTML-шаблон и CSS, которые отображают поле textarea, однако при нажатии на поле курсор начинается с середины текстовой области, а не с верхнего левого угла, как я ожидал.

Это не происходит в IE, но происходит в Chrome и FF. Я также получаю список ранее введенных значений, перечисленных ниже, предполагающих, что применяются стили текстового поля.

Может ли кто-нибудь посоветовать, какие свойства CSS мне следует изменить?

Вот HTML:

<input id="description" class="textarea" type="textarea" name="description" cols="70" rows="50">

Вот свойства, назначаемые текстовой области:

.standardForm .textarea {
    bottom: 0;
    height: 90px;
    left: 0;
    margin-bottom: 0.5em;
    right: 0;
}
custom.css (line 255)
.standardForm .textbox, .standardForm .textarea, .standardForm .submit, .standardForm .select {
    background: none repeat scroll 0 0 White;
    border: 1px dotted #AAAAAA;
}
custom.css (line 251)
.standardForm .textbox, .standardForm .textarea, .standardForm .select {
    font-size: 12px;
    overflow: hidden;
    padding: 7px;
    resize: none;
    width: 90%;
}
custom.css (line 250)
html, body, div, span, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, input, button, textarea {
    background: none repeat scroll 0 0 transparent;
    border: 0 none;
    font-size: 100%;
    font-weight: normal;
    margin: 0;
    outline: 0 none;
    padding: 0;
    text-decoration: none;
    vertical-align: baseline;
}
5
задан Bo Persson 13 August 2011 в 12:54
поделиться