This example works great on Chrome but not working as expected on Firefox.
We're using IBM BPM for making form-based web applications. We can't change html codes in BPM. So that we have to do this with CSS. Sorry :/ How can I solve this issue with css?
textarea {
padding: 10px 0px;
height: 150px;
}
.form-control {
display: block;
/* Remove this line */
}
.alignJustify>.layoutSec.hChild>.layoutCell {
display: table-cell
}
.layoutSec.valignTop>.layoutCell {
vertical-align: baseline
}
.CoachView_invisible {
visibility: hidden !important
}
<div class="alignJustify">
<div class="layoutSec valignTop hChild">
<div class="layoutCell">
<div>
Label
<div class="input">
<p id="input-readonly">
</p>
</div>
</div>
</div>
<div class="layoutCell">
<div>
<div class="input">
<textarea class="form-control" aria-multiline="true">Content</textarea>
</div>
</div>
</div>
</div>
</div>
Minimal example would be:
div {
display: table-cell;
outline: 1px solid;
}
textarea {
display: block;
min-height: 150px;
padding: 10px 0px;
}
<div>
Label
</div>
<div>
<textarea>Content</textarea>
</div>
Rendered outcomes:

