HTML to PDF / DOCX / RTF Java converter library › Forums › PD4ML Forums › Technical questions / Troubleshooting › inline-block with width auto not working properly with nested elements › Reply To: inline-block with width auto not working properly with nested elements
January 13, 2020 at 17:29
#33875
<html>
<head>
<style>
.content-sub_section {
display : inline-block;
width : auto;
}
.content-field {
width : 50%;
display : inline-block;
float : left;
}
</style>
</head>
<body>
<span>100</span>
<span>King</span>
<span>50</span>
<span>101</span>
<span>Mark</span>
<span>70</span>
</body>
</html>