If you or the client have the ability to adjust the amount of data being displayed, it is recommended to analyze the block size and its capacity in terms of characters. By doing so, the server script can be modified to handle data display based on these parameters instead of trying to force a fit from a design perspective which may not always be effective.
Alternatively, if altering the design itself is preferred, consider adjusting the font size and spacing dynamically based on the content length within each block. Although this approach may result in varying font sizes for each block, it can be implemented as long as the client does not express concerns about this aspect.
The following code snippet could be used with a default font size set to 16px:
<div class="infos">Some Text</div>
<div class="infos">Some Text</div>
<div class="infos">Some Text</div>
$(".infos").each(function(){
x = $(this).html().length;
roundValue = Math.round(x/160);
fontSize = (roundValue>0)?16-roundValue:16;
$(this).css({"font-size":fontSize});
});
Modifications should be made according to specific requirements.
VIEW DEMO