View Single Post
Old 07-07-2025, 09:00 PM   #30
ElMiko
Evangelist
ElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileRead
 
ElMiko's Avatar
 
Posts: 455
Karma: 65460
Join Date: Jun 2011
Device: Kindle
Okay, but e-readers don't generally allow scroll bars, right?

Perhaps a little context from me here would be helpful:

What I'm trying to solve for here is transcript-like formatting where the speaker name/title is in the left column and the dialogue is in the right. I want to avoid word wrapping the "name/title" column unless, of course, the font size has been set so large that it wouldn't fit on the screen. Another way of saying it is, I want the column width of the left column to be equal to the width of the longest string of text it contains, no more and no less.

My approach has been to use "nowrap" on the left column to ensure that it doesn't wrap if it's longer than 50% of the screen width. However, my concern is that using this method, if someone sets the font size too large, the text from the left column could disappear off the right side of the screen. Granted, in most cases, for this to happen the font-size would have to be pretty big or the screen would have to be pretty small (e.g. phone-sized), but it's still technically possible.

Last edited by ElMiko; 07-07-2025 at 09:11 PM.
ElMiko is offline   Reply With Quote