First, set a fixed width for the container. Set a height of 2 rows for the container on the left and center it vertically. If it is too long, it will automatically wrap.
Second, after loading them all, use a script to find the widest one on the left, and then set the width on the left uniformly.
Speaking of which... why is it so long? There must be a limit. Then setting a fixed width is the easiest way.
This type of navigation is not suitable for line breaks. You can use table and then set left alignment for td to force no line breaks. Or, all red icons can be floated to the right and aligned to the right.
Two methods,
First, set a fixed width for the container. Set a height of 2 rows for the container on the left and center it vertically. If it is too long, it will automatically wrap.
Second, after loading them all, use a script to find the widest one on the left, and then set the width on the left uniformly.
Speaking of which... why is it so long? There must be a limit. Then setting a fixed width is the easiest way.
Why not use table
This type of navigation is not suitable for line breaks. You can use table and then set left alignment for td to force no line breaks.
Or, all red icons can be floated to the right and aligned to the right.
I don’t know if I understand you correctly. Did you mean:
The "All" button on the right is aligned, and at the same time, the text on the left is aligned to the right?
Then why not use float:right attribute
Table is required here.
The left TD will be automatically expanded to the longest width.
Just place a payment on the right side.