i am pulling out the boxes from a database, some of which have text, image, and a link the image navigates to, and some of which don’t have text but have a link and an image.
If you notice the first box has text inside .box-content. however i cannot set a width as the boxes are of different widths… what i have had to do is set a min and max width on .box-content. But i can see a problem here where if the smaller boxes have text inside the text will overflow…
How can i fix this so that the .box-content text fits perfectly inside the box, no matter what the size of the box is?
The text will only ever be in the wider boxes, if you see now, we are uploading boxes with text inside, you can see it is actually working quite nicely