KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I have a bunch of really long file names that cause my HTML formatting to overflow. All of these filenames use underscores instead of spaces and would break/wrap easily if they were spaces. Like this. Here_is_an_example_of_a_really_long_filename_that_uses_underscores_instead_of_spaces.pdf Is there some way to tell CSS to treat underscores in text as if they were whitespace or hyphens, and thus wrap/break on underscores too? Like this. Here_is_an_example_of_a_really_long_ file_name_that_uses_underscores_ instead_of_spaces.pdf For my purposes, I cannot use a script to do this. I also don't want to use the word-wrap:break-word trick because that usually doesn't work without also specifying a width. Also, it breaks arbitrarily in the middle of words. Thanks.
Tags (comma-separated)
Save Edits
Cancel