I made a rectangle containing the article title, that title is limited using php substr , but when a word is large it breaks the line by continuing the text below, however the number of characters remains the same, except that the text ends up being larger than the rectangle because of the line break. Could someone help me as a solution, I do not want it to raise the rectangle.