Options for list within a fixed width, HTML PHP Code Answer

Hello Developer, Hope you guys are doing great. Today at Tutorial Guruji Official website, we are sharing the answer of Options for list within a fixed width, HTML PHP without wasting too much if your time.

The question is published on by Tutorial Guruji team.

Do you know of a good solution for dealing with text entries of variable lengths lists with a fixed width?

I have an unordered list with a set number of items. Each item contains a title. The title can be variable length, not only in number of characters, but also number of characterset (korean, japanese, roman, etc.).

One option seems to be cutting the text length down with PHP and adding “…” at the end, but since character widths can be variable, the exact cutoff can also be variable. Another would be to make items fixed with and hide overflow, but this seems inelegant (because characters might get cutoff right in their centers…).

Do you know of a good tutorial or solution for something like this?


Using CSS: text-overflow: ellipsis. Doesn’t work in all browsers though. More information: http://www.quirksmode.org/css/textoverflow.html.

We are here to answer your question about Options for list within a fixed width, HTML PHP - If you find the proper solution, please don't forgot to share this with your team members.

Related Posts

Tutorial Guruji