Menu
Hi,
I’m thinking there isn’t a sensible solution to this but you guys might have some ideas.
I’ve made a page where PHP dynamically puts text content on a page by loading it into a string from a text file of projects. It’s given a certain font size and width to fit into using CSS. For some projects, the text is quite short and fits in fine. For others, it overflows the space allowed.
Apart from working out the average number of characters that causes it to spill over, is there some way I could get PHP (or CSS?) to say “fit the text into this space – if the auto word-wrapping creates >= X lines, generate a ‘page 2’ button”?