3 ms·
Let's not use space characters in the markup. Instead, use "white-space: nowrap" [1] in CSS. Well, or just read up on the display box model in the first place
by cookiengineer 6y ago
Let's not use space characters in the markup.
Instead, use "white-space: nowrap" [1] in CSS.
Well, or just read up on the display box model in the first place.
[1] https://developer.mozilla.org/en-US/docs/Web/CSS/white-space https://developer.mozilla.org/en-US/docs/Web/CSS/white-space
- perilunar 6y ago"white-space: nowrap" just stops line wrapping — it won't add a space that doesn't already exist in the source code. The cleanest way to add whitespace in this situation is to add a right margin to the icon. The quickest way is to add an HTML character entity. The lightest way is to add a single unicode space character before the text.
- alxlaz 6y agoY'all realize that this is precisely why some people just want to bring spacer GIFs back, right :-D?
- 1_player 6y ago> Let's not use space characters in the markup. Why not?