Tengo un select que cuando se elije una opción, debe mostrar en un div el detalle de dicha opción.
EL div debe ocupar todo el ancho disponible, pero en vertical debe hacer visibles en forma fija un máximo 5 líneas. Si la descripción ocupa más de 5 líneas, con el scroll vertical debe poder ir desplazándose para ver las restantes líneas del detalle.
El problema es que no he dado en cómo poder definir el máximo de las 5 líneas a mostrar en el DIV, por lo cual el tamaño vertical crece y no es el comportamiento que necesito. Para el div puse:
<div class="container-fluid row">
<div class="col-12 align-self-start">
<p>DETALLE DE LA SELECCION</p>
</div>
<div id="detalleseleccion" name="detalleseleccion" style="overflow-x: hidden; overflow-y: scroll; width: 100%; border: 1px solid">
<p>There are many variations of passages of Lorem Ipsum available, but the majority have suffered alteration in some form, by injected humour, or randomised words which don't look even slightly believable. If you are going to use a passage of Lorem Ipsum, you need to be sure there isn't anything embarrassing hidden in the middle of text. All the Lorem Ipsum generators on the Internet tend to repeat predefined chunks as necessary, making this the first true generator on the Internet. It uses a dictionary of over 200 Latin words, combined with a handful of model sentence structures, to generate Lorem Ipsum which looks reasonable. The generated Lorem Ipsum is therefore always free from repetition, injected humour, or non-characteristic words etc.There are many </p>
</div>
</div>
Esa es la salida que estoy obteniendo:
textarea
con atributosdisabled-rows="4"
para obtener lo que quieres.