#how to prevent text spilling out when browser size changes?

4 messages · Page 1 of 1 (latest)

jolly flint
nocturne swallow
#

The problem here is that the buttons are set to 100% and live inside the all-items div. The all-items div is set to 60% of the width of the body. So, as the size of the page shrinks so does the width of the all-items div and thus the width of the buttons.

To further complicate things your buttons are set to no-wrap and so the text flows outside. Suggest that you perhaps remove the no-wrap which will force the text to wrap in the buttons when the width is too small.

This is a trade-off of course and perhaps not your ideal design however you have incompatible constraints in there and something's got to give. I would suggest that the wrapping button text looks way better than the text spilling out.

The are other options, like clipping, that are equally unappealing.

#

Here's a screen shot without the no-wrap and a narrow screen:

It's not bad...

jolly flint
#

Thanks so much !!!