1

Есть код:

<div class="block" style="background: #ccc;">
 <textarea style="font-size: 11px; font-family: tahoma; padding: 4px;"></textarea>
</div>

Почему-то в chrome автоматически принимается padding, а в других же браузерах всё нормально. В чём проблема?

Chrome

alt text

Остальные браузеры

alt text

3 ответа 3

2

StackOverflow: How do I fix inconsistent Textarea bottom margin in Firefox and Chrome?

textarea {display:block}
0

!important к padding и margin добавьте

1
  • @rimlin, не помогает...
    – ololoshka
    26 апр 2012 в 11:50
0

margin и padding по нулям сделайте.

1
  • Не помогает ): <style type="text/css"> .block { background: #ccc; margin: 0; padding: 0ж } #wall_text { background: #fff; border: 1px solid red; padding: 10px; margin: 0; resize: none; outline: none; font-size: 12px; font-family: tahoma; height: 14px; } </style> <div class="block"><textarea id="wall_text"></textarea></div>
    – ololoshka
    26 апр 2012 в 11:42

Ваш ответ

By clicking “Отправить ответ”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Всё ещё ищете ответ? Посмотрите другие вопросы с метками или задайте свой вопрос.