/ Code Css white-space | Résultat du code Css white-space | Copie d'écran / J'ai vu une erreur dans cette page

Exemple de code de la propriété CSS white-space.

<style>
.white-space-nowrap{  : nowrap }
.white-space-pre{  : pre }

.exemple{ width:150px; border:1px solid green }
</style>
Normal :
<table width="150" border="1" cellspacing="0" cellpadding="2">
 <tr>
  <td>Mon texte va à     la ligne</td>
  <td>  Mon texte va à la ligne </td>
 </tr>
</table>
<div class="exemple">
white-space white-space 
  white-space 
     white-space
</div>

.identifiant{white-space:nowrap}
<table width="150" border="1" cellspacing="0" cellpadding="2">
 <tr>
  <td>Mon texte va à la ligne</td>
  <td class="white-space-nowrap">Mon texte va à la ligne white-space : nowrap</td>
 </tr>
</table>
.identifiant{white-space:pre}
<div class="exemple white-space-pre">
white-space white-space 
  white-space 
     white-space 

</div>

Interprétation du code de la propriété white-space CSS par votre navigateur.

Normal :
Mon texte va à     la ligne Mon texte va à la ligne
white-space white-space white-space white-space
.identifiant{white-space:nowrap}
Mon texte va à la ligne Mon texte va à la ligne white-space : nowrap
.identifiant{white-space:pre}
white-space white-space white-space white-space

Interprétation normale du code de la propriété CSS white-space (copie d'écran).

copie d'écran de l'affichage de la propriété CSS white-space