CSS tip: stop paragraphs from leaving one lonely word on the last line.
p {
text-wrap: pretty;
}
The browser rebalances the last few lines so no word is left hanging alone. Browsers without support just wrap as usual.
CSS tip: stop paragraphs from leaving one lonely word on the last line. p { text-wrap: pretty; } The browser rebalances the last few lines so no word is left hanging alone. Browsers without support just wrap as usual.
0 vue
Publié le 09/11/2026 11:44
CSS tip: stop paragraphs from leaving one lonely word on the last line.
p {
text-wrap: pretty;
}
The browser rebalances the last few lines so no word is left hanging alone. Browsers without support just wrap as usual.
0 commentaire
?