.box{ display: flex; padding: 20px; flex-wrap: wrap; border: 1px solid #d9d9d9; width: 93%; margin-left: 3%; } .boxtitle{ position: relative; top: 10px; margin-left: 5%; } .boxspan{ font-weight: bold; background-color: #fff; padding: 0 5px; } .check{ flex-shrink: 0; flex-grow: 0; min-width: 150px; overflow: hidden; padding-bottom: 10px; margin-right: 10px; .ant-checkbox-wrapper{ max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } }