I have an background image for a menu bar as follows

and it has four constant text displayed on each of the box. right most box is empty place. This image is made with all those static four vertical bars.
Now the problem is those four texts are so dynamic and are of variable lengths for different situation. Because of the variable lengths, its overlapping with those vertical bars when the texts not able to accommodate inside the box.
What is the best option to deal with this scenario using styling or another way.?
Thanks in advance.
Case 1: Using Borders
You can give the links a
border-rightinstead of relying on the image.Case 2: Using Ellipsis
You can give a
text-ellipsisfor those links and make sure they come fit inside the lines: