How do I create a row of justified elements with fluid spacing using CSS?
问题 How do I create a row of block elements with auto widths using text-align:justify , display: flex , column-count and/or other CSS properties? 回答1: Use the following components: A text-align:justify container for the row An inline-block container for each column An inline-block placeholder with width:100% to stretch the inside ` /*Row container is justified*/ #container { width: 100%; text-align: justify; } /*Column container and placeholder are inline-block*/ object, span { display: inline