Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: rephrase <nobr> situation statement #2838

Merged
merged 1 commit into from
Mar 3, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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