Section 1: Honesty

24 Avoiding line breaks

Sometimes you want to make sure that phrases don’t break across lines. Here’s some legal notation that should never break lines [no special treatment]: § 1234567. Unfortunately, this one will break because it’s not treated.

Sometimes you want to make sure that phrases don’t break across lines. Here’s some legal notation that should never break lines [using  ]: § 1234567. This notation will never break in unexpected places because the expression uses the html character for non-breaking space, so the browser treats it as a single word.

Sometimes you want to make sure that phrases don’t break across lines. Here’s some legal notation that should never break lines [using CSS]: § 1234567. This notation will never break in unexpected places because we’ve wrapped it in a span and used CSS to keep it from breaking where we don’t want it to.

License

Icon for the Creative Commons Attribution 4.0 International License

Steel's Great Book Copyright © 2019 by Steel Wagstaff is licensed under a Creative Commons Attribution 4.0 International License, except where otherwise noted.

Share This Book