Is it possible to align text with indent over multiple lines and responsible? Like two Columns which breaks when the window ist too small.
For Example:
When Content fits in one Line:
Text Value
Longer Text Value
Text Longer Value
When Content does not fit in one Line:
Text
Value
Longer Text
Value
Text
Longer Value
The first text should so long it needs, so I don't wan't extra space behind it.
Here is a example where I have a fixed length of the text "column":
dt {
width: 6em; //I want a solution without a width
display: inline-grid;
}
dt,
dd {
float: left
}
dt {
clear: both
}
<dl>
<dt>Text</dt>
<dd>Value</dd>
<dt>Longer Text</dt>
<dd>Value</dd>
<dt>Text</dt>
<dd>Longer Value</dd>
</dl>
So I want the same result without setting the min-width or width of the text "column".