I\'d like to have a table with headers down the left hand side, the headers should be as narrow as possible, and the space for the values should take up the rest of the widt
If you know what the data is in the UPDATED JSFIDDLE already, you could then wrap the long length text into a tag or so, and adjust the CSS slightly for that.
table {
width: 100%;
}
th {
text-align: right;
white-space: nowrap;
}
th span {
white-space: normal;
word-break: break-all;
display: block;
}
td {
width: 100%;
}
Short Header
value
Short Header
value
Quite Long Header
value
Short Header
value
Quite Long Header
value
MMMMMMMMMMMMMMMMMMMMMMMMMMMassiveHeader
value