HTML - tags - <nobr>

#90 of 147
nobr

 <html>
 <body>
     <div style="max-width: 20em">
         <p>
             1. Talent hits a target
         </p>
         <p>
             <nobr>
                 2. Talent hits a target
             <nobr>
         </p>
         <p style="white-space: nowrap">
             3. Talent hits a target
         </p>
     </div>
 </body>
 </html>
 

The nobr element prevents the browser from inserting a line break.

Non-standard Use style="white-space: nowrap" instead.

A live example:


1. Talent hits a target no one else can hit; Genius hits a target no one else can see. Arthur Schopenhauer.


2. Talent hits a target no one else can hit; Genius hits a target no one else can see. Arthur Schopenhauer.


3. Talent hits a target no one else can hit; Genius hits a target no one else can see. Arthur Schopenhauer.


N of

Ads by Google

Ask a question, send a comment, or report a problem - click here to contact me.

© Richard McGrath