Textarea rows

info25 asked 10 years ago

Hi, I use Pro MDB 4.0.2. How can I increase the number of rows of the textarea? rows = "10" does not work. And is it possible to display a vertical Srollbar? Thanks, Joerg
Hi, add this code to your CSS file to increase height of your textarea:
textarea.md-textarea {
            height: 12rem;
        }
and about scrollbar, if you want scrollbar always visible, add this code to your CSS file:
textarea.md-textarea {
            overflow-y: scroll;
        }
and if you want scrollbar visible only when it's needed, change "scroll" to "auto"

info25 answered 10 years ago

Hi, its work for me. Thanks, Joerg
Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Answered

Specification of the issue
  • User: Pro
  • Premium support: No
  • Technology: General Bootstrap questions
  • MDB Version: -
  • Device: -
  • Browser: -
  • OS: -
  • Provided sample code: No
  • Provided link: No
Tags