I am in the process of designing a dynamic panel that contains buttons with both images and labels. When the labels are long, I would like them to be displayed on multiple lines. By using CSS, you can achieve this by setting white-space: normal
. However, one issue is that the button on the next line tends to snap to the end of the line.
I have created two jsfiddles for demonstration:
One with the .launchpad-button .x-btn-inner
white-space comment removed.
Although it looks good, I want the full text to display (even if it spans multiple lines).
In contrast, this doesn't look as good. How can I resolve this?
Edit:
Update! ScottS' solution works perfectly, but I encountered an issue when resizing the window or having limited space available: The new line (clear: left) appears in the incorrect position.