hi team,
can any one provide a solution for the below problem
here in this big box we have to display 10 icons with text but the space is less...
Icons sizes will be width 27pixels and height 23pixels.
i tried my best to show it as two rows but all the icons will be data based means dynamically will display based on certain conditions.
can anyone suggest me to display the text of icon to fix with in the height of icon. used
for text but looks odd
Note : All icons has to be display in a single line horizontally


Deepak RawatRank #646 · 3.7K reputationPosted Jul 26, 2023, 10:53 AM EDT
Here is the solution i am not sure you are using icon or checkbox i asume you re using checkbox.
Checkbox with Text in a Single Row /* Optional CSS styling for better presentation */ .checkbox-container { display: flex; align-items: center; flex-direction:row; } .checkbox-label { margin-left: 8px; } Text next to the checkbox Text next to the checkbox Text next to the checkbox Text next to the checkbox Text next to the checkbox Text next to the checkboxOutput
Mohammad HussainRank #513 · 4.8K reputationPosted Jul 26, 2023, 7:00 AM EDT
.icon-container { white-space: nowrap; /* Prevent text from wrapping to new lines */ display: flex; /* Display icons and text in a single line */ gap: 10px; /* Adjust the gap between icons */ } .icon-with-text { display: flex; /* Display icon and text horizontally */ align-items: center; /* Center text vertically with icon */ } .icon-text { max-width: 27px; /* Set max-width to the icon's width */ overflow: hidden; /* Hide overflowing text */ text-overflow: ellipsis; /* Add ellipsis to indicate truncated text */ font-size: 10px; /* Adjust font size as needed */ }Murali PRank #6,159 · 275 reputationPosted Jul 26, 2023, 9:55 AM EDT
Didi not worked out well..
Thanks for the help
Murali PRank #6,159 · 275 reputationPosted Jul 26, 2023, 11:54 PM EDT
hi deepak,
thanks for the reply.. but expected output is not that .. need to adjust the width of text with in the height of icon /check box since space of div is less and need to adjust