Skip to content

Commit

Permalink
docs: rephrase <nobr> situation statement (#2838)
Browse files Browse the repository at this point in the history
Addressing the fact that `nobr` does enjoy wide support.
  • Loading branch information
j9t authored Mar 3, 2021
1 parent 2cbbcf1 commit c2fbb0e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion files/en-us/web/html/element/nobr/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<p>The non-standard, obsolete HTML <code>&lt;nobr&gt;</code> element prevents the text it contains from automatically wrapping across multiple lines, potentially resulting in the user having to scroll horizontally to see the entire width of the text.</p>

<div class="notecard warning">
<p>This element was <em>never</em> standard HTML and was not widely implemented, so you shouldn't use it. Instead, use the CSS property {{CSSxRef("white-space")}} like this:</p>
<p>Although this element is widely supported, it was <em>never</em> standard HTML, so you shouldn't use it. Instead, use the CSS property {{CSSxRef("white-space")}} like this:</p>
</div>

<pre class="brush: html">&lt;span style="white-space: nowrap;"&gt;Long line with no breaks&lt;/span&gt;</pre>
Expand Down

0 comments on commit c2fbb0e

Please sign in to comment.