Welcome to DU! The truly grassroots left-of-center political community where regular people, not algorithms, drive the discussions and set the standards. Join the community: Create a free account Support DU (and get rid of ads!): Become a Star Member Latest Breaking News Editorials & Other Articles General Discussion The DU Lounge All Forums Issue Forums Culture Forums Alliance Forums Region Forums Support Forums Help & Search

EarlG

(22,691 posts)
11. One other thing to bear in mind
Sun Oct 29, 2023, 11:38 AM
Oct 2023

While this is a step up from what we had before (ie. no monospace capability) it's not a very elegant way to produce a table. Unfortunately, on smaller screens, wide tables will look weird. The nbsp code is literally short for "non-breaking space" so if you use them to fill every space in the excerpt, once the text lines reach the end of the viewport, they'll just keep going off the edge of the screen. So if you're using this technique and you want everyone to be able to read the table, my advice would be to try to keep the table as narrow as possible. For example, the test table I produced is viewable on my phone but only if I turn it sideways, otherwise the table flows off the edge of the screen.

Phones and tables don't really mix very well together because of the limited width. One possibility is usonian's alternate suggestion -- to post the table as an image. Obviously this is also not ideal, because it makes it harder to copy data from the table should you want to do that. However, it does avoid the line-wrapping problem as an image of a table would shrink to fit a phone's width (and can be pinched-and-zoomed to read the data if the text is too small).

Recommendations

0 members have recommended this reply (displayed in chronological order):

Latest Discussions»Help & Search»DU Community Help»Thanks for monospace font...»Reply #11