I'm trying to make vertical-align:top
works in this example:
.container {
width: 200px;
white-space: nowrap;
background-color: #E6E9F0;
border: solid 1px black;
vertical-align: top;
}
dt,dd {
display: inline-block;
}
dd {
white-space: break-spaces;
margin: 0;
}
dt {
margin-right: 6px;
}
<dl>
<div class="container">
<dt>Text</dt>
<dd>Very very veeeeeeeeeeeeeery veeeeeery very very very long text</dd>
</div>
</dl>
As you can see it doesn't work, another issue is that the content gets outside the container.
How can I solve this ?