V
V
Vlad Yanukovich2020-10-25 20:59:16
css
Vlad Yanukovich, 2020-10-25 20:59:16

Crossbrowser compatibility with textarea, what to do?

Hello gentlemen and ladies. I have a question regarding the teaxtarea tag and the bootstrap 4 framework.

The essence of the problem is this: in browsers with the chronium engine (opera and chrome), this text field works fine, without problems (screenshot 1). Checking for cross-browser compatibility, I opened the site in Mozilla and saw the following picture (screenshot 2). the width of the textarea does not behave very well, to put it mildly. Below I will attach the code with styles. What is the problem and how can I solve it, please help.

textarea code:

<textarea type="text" id="text-area" class="md-textarea form-control" placeholder="Your message" cols="53" rows="6"  style="resize: vertical; min-height: 50px; height: 100px; max-height: 150px;  background: none; border: none; border-bottom: 1px solid gray; border-radius: 0; color: #fff; margin-bottom: 15px;"></textarea>


the first screen is in chrome, the second is in mozill
5f95bca6bd7fc269278745.png
5f95bcaf6ab00865780349.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
archelon, 2020-10-25
@Vladislav6

max-width:100%;, For example

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question