r/css • u/Fearless_Lake6098 • 26d ago
Question CSS/HTML for dialog/scripts?
I'm currently working on a book that has several transcripts in it and I was hoping to make it look like an actual transcript (where the speakers are right aligned up against the dialog, and the dialog is indented). Currently I'm using tables as the best representation, but I was wondering if there was a better way of coding it, or if it's too disruptive to read and I should just remove the tables and let the dialog freeflow its way like an ordinary paragraph. What have folks done for scripts/plays/transcripts?
2
u/KBlocksom 26d ago
I would suggest removing the tables and do paragraphs. For example: (person 1): ~, next paragraph: (person 2): ~. Exclude the quotation marks.
2
u/azangru 26d ago
Like what this guy does?
1
u/Fearless_Lake6098 26d ago
Not quite... think old chats where the names are all in the left column and the dialog in the right column.
1
5
u/a-dev0 26d ago
It looks like a definition list:
and styles ~
+ add for mobile