I have a table created using <div>
elements with styles such as display:table-row
, table-cell
, and position:relative
.
The first row in the table looks like this:
<div style="display:table-row">
<div style="display:table-cell; position:relative; width: 25% !important;"><strong>Unit price</strong></div>
<div style="display:table-cell; position:relative; width: 25% !important;"><strong>Price basis</strong></div>
<div style="display:table-cell; position:relative; width: 25% !important;"><strong>Delivery date</strong></div>
<div style="display:table-cell; position:relative; width: 25% !important;"><strong>Amount</strong></div>
</div>
The next rows follow a similar format, but for one of them, I want to have a single table-cell that spans the entire row (100% width).
<div style="display:table-row">
<div style="display:table-cell; position:relative; width: 100% !important;"><strong>some value</strong></div>
</div>
The issue is that the text is wrapping based on the width of the first table cell (25%).
How can I configure this particular row to expand the text across the entire row?