Consider this scenario: within a list of rows, there is one row item that exceeds its height.
Despite trying overflow: visible
, the issue persists as it only makes the content visible without adjusting the external DIVs due to the presence of position: absolute
.
Is there a way to make the row (marked with a green border) adapt to its content?
This particular setup utilizes CSS classes from Bootstrap and should ideally leverage the existing classes for a solution.
<link rel="stylesheet" href="//netdna.bootstrapcdn.com/bootstrap/3.0.3/css/bootstrap.min.css">
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.5.0/css/font-awesome.css" rel="stylesheet">
<div class="form-group panel-heading row" style="display: block; position: relative; line-height: 20px; border: 1px solid green">
<div class="col-sm-2 switch-wrapper" style="overflow:visible; position:relative; border: 1px solid blue">
<div style="overflow:visible; border: 1px solid yellow">
<i class="fa fa-caret-up" style="border: 1px solid black"></i><span style=" position: absolute;margin-left: 5px; border: 1px solid red">A long description adjacent to the input field that doesn't fit into one line and it has to be broken into multiple lines.
</span></div>
</div>
</div>