Are there other whitespace codes like   for half-spaces, em-spaces, en-spaces etc useful in HTML?

后端 未结 5 1778
暖寄归人
暖寄归人 2020-11-29 15:26

Wondering if there are other codes available to use in an HTML newsletter.

I would use cell padding or margins but I\'m new to this HTML/CSS thing and I can\'t find

5条回答
  •  天命终不由人
    2020-11-29 15:43

    There are codes for other space characters, and the codes as such work well, but the characters themselves are legacy character. They have been included into character sets only due to their presence in existing character data, rather than for use in new documents. For some combinations of font and browser version, they may cause a generic glyph of unrepresentable character to be shown. For details, check my page about Unicode spaces.

    So using CSS is safer and lets you specify any desired amount of spacing, not just the specific widths of fixed-width spaces. If you just want to have added spacing around your h2 elements, as it seems to me, then setting padding on those elements (changing the value of the padding: 0 settings that you already have) should work fine.

提交回复
热议问题