Bonjour,
Tu peux t'y prendre de 2 façons :
— insérer des espaces insécables ( ) à la main
comment ça marche
comment ça marche
— utiliser un peu de style, en appliquant du “
word-spacing”.
Essaye ça
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>Essai d'espacement des mots</title>
<meta http-equiv="Content-type" content="text/html; charset=utf-8">
<style type="text/css">
html, body {
margin: 0;
padding: 0;
text-align: center;
background-color: #b0c4de;
}
#conteneur {
position: relative;
margin: 2em auto;
width: 760px;
text-align: left;
border : 1px solid #f0ffff;
background-color: #f0ffff;
font-family: Tahoma, 'Trebuchet MS', Verdana, Optima, Papyrus, sans-serif;
color : #00008b;
}
p { margin : 2em; }
p span {
word-spacing : normal;
letter-spacing : normal;
padding-left : 2em;
font-family : monospace;
color : #228b22;
}
</style>
</head>
<body>
<div id="conteneur">
<p>comment ça marche</p>
<p>comment ça marche <span>avec quatre &nbsp; entre chaque mot</span></p><br>
<p style="word-spacing:normal;">comment ça marche</p>
<p style="word-spacing:2em;">comment ça marche <span>avec un word-spacing de 2em</span></p>
<p style="word-spacing:2em; letter-spacing:2px;">comment ça marche <span>avec, en plus au cas où, un letter-spacing de 2px</span></p>
</div>
</body>
</html>
--