If I want to have dl where dt and dd are inline that seems impossible with latest build of Prince for MAC OSX.
Usually, this is the most common HTML/CSS to write:
This will make the structure as it should work, but the margin between each dt and dd in each successive pair will be twice bigger than before for no apparent reason. HTML is of course correct.
I even tried other solution:
This one works as intended, but for some reason, some font rules that I put on dt will just be ignored, like font-size, text-transformation, font-weight.
As attachment there is how HTML looks in both cases and how PDF renders in both cases.
Usually, this is the most common HTML/CSS to write:
<dl>
<dt>Term 1:</dt>
<dd>Data 1</dd>
<dt>Term 2:</dt>
<dd>Data 2</dd>
<dt>Term 3:</dt>
<dd>Data 3</dd>
<dt>Term 4:</dt>
<dd>Data 4</dd>
</dl>
dt, dd {
float: left;
}
dt {
clear: both;
}
This will make the structure as it should work, but the margin between each dt and dd in each successive pair will be twice bigger than before for no apparent reason. HTML is of course correct.
I even tried other solution:
dt:before {
content: "";
display: block;
}
dt, dd {
display: inline;
}
This one works as intended, but for some reason, some font rules that I put on dt will just be ignored, like font-size, text-transformation, font-weight.
As attachment there is how HTML looks in both cases and how PDF renders in both cases.