Answer the question
In order to leave comments, you need to log in
Is this behavior of browsers normal?
Ran into a nasty update in Chrome and Firefox today. We have the following HTML code:
<!DOCTYPE html>
<html lang="ru">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>
<div class="b-f-container">
<label for="text" class="b-f-label">Label for form element</label>
<textarea name="textarea" id="text" cols="30" rows="10" class="b-f-text"></textarea>
</div>
</body>
</html>
.b-f-container {
width: 80%;
margin: auto;
}
.b-f-text {
width: 100%;
max-width: 100%;
padding: 10px;
margin: 0;
border: 1px solid #888;
color: #888;
}
Answer the question
In order to leave comments, you need to log in
First, there is a resize rule to set the behavior of a textarea , and you should have known about that for a long time.
Secondly, developers who consider users to be fools are already rather tired, and their preferences in font size, GUI behavior are an axiom. Try to understand that you do not need to climb where the user does not ask you to climb. Let him increase the field as he sees fit. Don't impose your standards of "beauty".
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question