Closed mnot closed 9 years ago
Yes, if we can find the right CSS for it. The text should be on the same line for short labels, and on the next line for long labels. Example: https://tools.ietf.org/html/rfc7516#section-12.2.
Here's what I've got, resulting in http://hildjj.github.io/draft-hildebrand-html-rfc/test.3.html#n-references:
.reference {
padding-bottom: 10px;
float: left;
}
.reference dt {
margin-top: 8px;
font-weight: bold;
float: left;
text-align: right;
width: 6em;
}
.reference dd {
margin-top: 8px;
margin-left: 6.5em;
}
very similar to Mark's example.
That doesn't seem to work to well if the anchor is wide. Edge cases :-)
Would you take a pull request that uses DL instead of table for references? Arguably that's better HTML.
See (roughly): https://github.com/mnot/RFCbootstrap/commit/ab9b1c7b8cc17ce390dd3d9c3c23ad9eadb622fd